Home
last modified time | relevance | path

Searched refs:ReflectionFunction (Results 1 – 25 of 137) sorted by relevance

123456

/php-src/ext/reflection/tests/
H A DReflectionFunction_construct.001.phpt2 ReflectionFunction constructor errors
10 $a = new ReflectionFunction(array(1, 2, 3));
16 $a = new ReflectionFunction('nonExistentFunction');
21 $a = new ReflectionFunction();
26 $a = new ReflectionFunction(1, 2);
31 $a = new ReflectionFunction([]);
38 Ok - ReflectionFunction::__construct(): Argument #1 ($function) must be of type Closure|string, arr…
40 Ok - ReflectionFunction::__construct() expects exactly 1 argument, 0 given
41 Ok - ReflectionFunction::__construct() expects exactly 1 argument, 2 given
42 Ok - ReflectionFunction::__construct(): Argument #1 ($function) must be of type Closure|string, arr…
H A Dgh10623.phpt2 GH-10623 (ReflectionFunction::getClosureUsedVariables() returns empty array in presence of variadic…
11 var_dump((new ReflectionFunction($closure))->getClosureUsedVariables());
14 var_dump((new ReflectionFunction($closure))->getClosureUsedVariables());
17 var_dump((new ReflectionFunction($closure))->getClosureUsedVariables());
20 var_dump((new ReflectionFunction($closure))->getClosureUsedVariables());
23 var_dump((new ReflectionFunction($closure))->getClosureUsedVariables());
26 var_dump((new ReflectionFunction($closure))->getClosureUsedVariables());
29 var_dump((new ReflectionFunction($closure))->getClosureUsedVariables());
H A DReflectionFunction_getClosure_basic.phpt2 Test ReflectionFunction::getClosure() function : basic functionality
5 echo "*** Testing ReflectionFunction::getClosure() : basic functionality ***\n";
17 $func = new ReflectionFunction( 'foo' );
21 $func = new ReflectionFunction( 'bar' );
27 *** Testing ReflectionFunction::getClosure() : basic functionality ***
H A DReflectionFunction_isAnonymous.phpt2 ReflectionFunction::isAnonymous
5 $rf = new ReflectionFunction(function() {});
8 $rf = new ReflectionFunction('strlen');
11 $rf = new ReflectionFunction(strlen(...));
H A DReflectionFunction_isDisabled_basic.phpt2 ReflectionFunction::isDisabled
11 $rf = new ReflectionFunction('is_file');
17 $rf = new ReflectionFunction('is_string');
23 Deprecated: Method ReflectionFunction::isDisabled() is deprecated since 8.0, as ReflectionFunction
H A DReflectionFunction_isVariadic_basic.phpt2 ReflectionFunction::isVariadic()
10 var_dump((new ReflectionFunction('test1'))->isVariadic());
11 var_dump((new ReflectionFunction('test2'))->isVariadic());
12 var_dump((new ReflectionFunction('test3'))->isVariadic());
H A DReflectionFunction_getClosureUsedVariables.phpt5 $reflector = new ReflectionFunction("strlen");
13 $reflector = new ReflectionFunction($function);
24 $reflector = new ReflectionFunction($function);
30 $reflector = new ReflectionFunction($function);
38 $reflector = new ReflectionFunction($function);
H A DReflectionFunction_isGenerator_basic.phpt2 ReflectionFunction::isGenerator()
11 $rf1 = new ReflectionFunction($closure1);
14 $rf2 = new ReflectionFunction($closure2);
25 $rf1 = new ReflectionFunction('func1');
28 $rf2 = new ReflectionFunction('func2');
H A DReflectionFunction_getExtensionName.phpt2 ReflectionFunction::getExtensionName()
7 $function = new ReflectionFunction('sort');
10 $function = new ReflectionFunction('foo');
H A DReflectionFunction_getExtension.phpt2 ReflectionFunction::getExtension()
7 $function = new ReflectionFunction('sort');
10 $function = new ReflectionFunction('foo');
H A Dbug49092.phpt2 Bug #49092 (ReflectionFunction fails to work with functions in fully qualified namespaces)
7 new \ReflectionFunction('ns\func');
8 new \ReflectionFunction('\ns\func');
H A Dbug48757.phpt2 Bug #48757 (ReflectionFunction::invoke() parameter issues)
13 $func = new ReflectionFunction('test');
16 $func = new ReflectionFunction('another_test');
H A DReflectionFunction_getClosureCalledClass.phpt34 $r = new \ReflectionFunction($d);
40 $r = new \ReflectionFunction($d);
46 $r = new \ReflectionFunction($d);
52 $r = new \ReflectionFunction($d);
58 $r = new \ReflectionFunction($d);
64 $r = new \ReflectionFunction($d);
71 $r = new \ReflectionFunction($d);
H A DReflectionAttribute_newInstance_deprecated.phpt22 $reflection = new ReflectionFunction('test1');
25 $reflection = new ReflectionFunction('test2');
28 $reflection = new ReflectionFunction('test3');
31 $reflection = new ReflectionFunction('test4');
H A DReflectionParameter_isVariadic_basic.phpt10 $r1 = new ReflectionFunction('test1');
11 $r2 = new ReflectionFunction('test2');
12 $r3 = new ReflectionFunction('test3');
H A DReflectionFunction_getNamespaceName.phpt2 ReflectionFunction::getNamespaceName()
8 $function = new \ReflectionFunction('sort');
14 $function = new \ReflectionFunction('A\\B\\foo');
H A Dclosures_005.phpt17 (new ReflectionFunction(function(){}))->isStatic(),
18 (new ReflectionFunction(static function(){}))->isStatic(),
19 (new ReflectionFunction($foo->qux()))->isStatic(),
/php-src/Zend/tests/closures/
H A Dclosure_065.phpt10 $r = new \ReflectionFunction($c);
18 $r = new \ReflectionFunction($c);
31 $r = new \ReflectionFunction($c);
40 $r = new \ReflectionFunction($c);
48 $r = new \ReflectionFunction($c);
61 $r = new \ReflectionFunction($c);
76 $r = new \ReflectionFunction($c);
/php-src/Zend/tests/attributes/
H A D006_filter.phpt6 $ref = new \ReflectionFunction(#[A1] #[A2] function () { });
11 $ref = new \ReflectionFunction(#[A1] #[A2] function () { });
16 $ref = new \ReflectionFunction(#[A1] #[A2] #[A2] function () { });
28 $ref = new \ReflectionFunction(#[A1] #[A2] #[A5] function () { });
33 $ref = new \ReflectionFunction(#[A1] #[A2] function () { });
38 $ref = new \ReflectionFunction(#[A1] #[A2] function () { });
43 $ref = new \ReflectionFunction(#[A1] #[A2] #[A3] function () { });
48 $ref = new \ReflectionFunction(#[A1] #[A2] #[A3] function () { });
55 $ref = new \ReflectionFunction(function () { });
63 $ref = new \ReflectionFunction(function () { });
H A Dgh8421.phpt43 var_dump((new ReflectionFunction($globalClosure))->getAttributes(FunctionAttribute::class)[0]->newI…
44 var_dump((new ReflectionFunction($globalStaticClosure))->getAttributes(FunctionAttribute::class)[0]…
45 var_dump((new ReflectionFunction(ClosureHolder::getClosureDefinedInScopeStatically()))->getAttribut…
46 var_dump((new ReflectionFunction(ClosureHolder::getStaticClosureDefinedInScopeStatically()))->getAt…
50 var_dump((new ReflectionFunction($holder->getClosureDefinedInScope()))->getAttributes(FunctionAttri…
51 var_dump((new ReflectionFunction($holder->getStaticClosureDefinedInScope()))->getAttributes(Functio…
H A D028_grouped.phpt23 new \ReflectionFunction('foo'),
24 new \ReflectionFunction('bar'),
45 string(18) "ReflectionFunction"
51 string(18) "ReflectionFunction"
H A D001_placement.phpt38 new \ReflectionFunction('f1'),
39 new \ReflectionFunction($f2),
40 new \ReflectionFunction($f3)
112 string(18) "ReflectionFunction"
120 string(18) "ReflectionFunction"
128 string(18) "ReflectionFunction"
H A D005_objects.phpt19 $ref = new \ReflectionFunction(#[A1('test')] function () { });
29 $ref = new \ReflectionFunction(#[A1] function () { });
39 $ref = new \ReflectionFunction(#[A1([])] function () { });
49 $ref = new \ReflectionFunction(#[A2] function () { });
65 $ref = new \ReflectionFunction(#[A3] function () { });
77 $ref = new \ReflectionFunction(#[A5] function () { });
/php-src/ext/zend_test/tests/
H A Dobserver_bug81430_1.phpt23 $r = new \ReflectionFunction("B");
29 <!-- init ReflectionFunction::__construct() -->
30 <ReflectionFunction::__construct>
31 </ReflectionFunction::__construct>
H A Dobserver_bug81430_2.phpt27 $r = new \ReflectionFunction("B");
33 <!-- init ReflectionFunction::__construct() -->
34 <ReflectionFunction::__construct>
35 </ReflectionFunction::__construct>

Completed in 25 milliseconds

123456