Home
last modified time | relevance | path

Searched refs:reflection (Results 1 – 25 of 100) sorted by relevance

1234

/php-src/ext/zend_test/tests/
H A Dattribute_arguments.phpt8 $reflection = new ReflectionFunction("zend_test_parameter_with_attribute");
9 $attribute = $reflection->getParameters()[0]->getAttributes()[0];
14 $attribute = $reflection->getParameters()[0]->getAttributes()[0];
19 $attribute = $reflection->getParameters()[0]->getAttributes()[0];
24 $attribute = $reflection->getParameters()[0]->getAttributes()[0];
29 $attribute = $reflection->getParameters()[0]->getAttributes()[0];
41 $attribute = $reflection->getParameters()[0]->getAttributes()[0];
46 var_dump(count($reflection->getParameters()[0]->getAttributes()));
56 $attribute = $reflection->getParameters()[0]->getAttributes()[0];
61 $attribute = $reflection->getParameters()[0]->getAttributes()[0];
[all …]
H A Dattribute-deprecated.phpt10 $reflection = new ReflectionFunction('zend_test_deprecated_attr');
11 var_dump($reflection->getAttributes()[0]->newInstance());
12 var_dump($reflection->isDeprecated());
16 $reflection = new ReflectionClassConstant('_ZendTestClass', 'ZEND_TEST_DEPRECATED_ATTR');
17 var_dump($reflection->getAttributes()[0]->newInstance());
18 var_dump($reflection->isDeprecated());
H A Dattribute-named-parameter.phpt8 $reflection = new ReflectionFunction("zend_test_attribute_with_named_argument");
9 $attribute = $reflection->getAttributes()[0];
H A Dgh13970.phpt13 $reflection = new ReflectionFunction('test');
16 var_dump($reflection->getAttributes()[0]->newInstance());
H A Dvariadic_arguments.phpt8 $reflection = new ReflectionMethod("_ZendTestClass", "variadicTest");
9 $arguments = $reflection->getParameters();
/php-src/ext/reflection/tests/
H A Dbug52057.phpt8 $reflection = new ReflectionClass('closure');
9 var_dump($reflection->hasMethod('__invoke')); // true
11 $reflection = new ReflectionClass($closure);
12 var_dump($reflection->hasMethod('__invoke')); // true
14 $reflection = new ReflectionObject($closure);
15 var_dump($reflection->hasMethod('__invoke')); // true
17 $reflection = new ReflectionClass('closure');
18 var_dump($h = $reflection->getMethod('__invoke')); // true
21 $reflection = new ReflectionClass($closure);
22 var_dump($h = $reflection->getMethod('__invoke')); // true
[all …]
H A DReflectionAttribute_newInstance_deprecated.phpt22 $reflection = new ReflectionFunction('test1');
23 var_dump($reflection->getAttributes()[0]->newInstance());
25 $reflection = new ReflectionFunction('test2');
26 var_dump($reflection->getAttributes()[0]->newInstance());
28 $reflection = new ReflectionFunction('test3');
29 var_dump($reflection->getAttributes()[0]->newInstance());
31 $reflection = new ReflectionFunction('test4');
32 var_dump($reflection->getAttributes()[0]->newInstance());
H A DReflectionFiber_basic.phpt9 var_dump($reflection->getExecutingFile());
10 var_dump($reflection->getExecutingLine());
11 var_dump($reflection->getTrace());
17 $reflection = new ReflectionFiber($fiber);
20 var_dump($fiber === $reflection->getFiber());
21 var_dump($callable === $reflection->getCallable());
26 var_dump($reflection->getExecutingFile());
27 var_dump($reflection->getExecutingLine());
28 var_dump($callable === $reflection->getCallable());
29 var_dump($reflection->getTrace());
[all …]
H A DReflectionZendExtension.phpt9 $reflection = new ReflectionZendExtension('Zend OPcache');
10 var_dump($reflection->getAuthor());
11 var_dump($reflection->getCopyright());
12 var_dump($reflection->getName());
13 var_dump($reflection->getURL());
14 var_dump($reflection->getVersion() === PHP_VERSION);
H A DReflectionMethod_getDocComment_property_list.phpt21 $reflection = new ReflectionProperty('\X', 'x');
23 var_dump($reflection->getDocComment());
25 $reflection = new ReflectionProperty('\X', 'y');
27 var_dump($reflection->getDocComment());
29 $reflection = new ReflectionProperty('\X', 'z');
31 var_dump($reflection->getDocComment());
H A DReflectionFiber_errors.phpt10 $reflection = new ReflectionFiber($fiber);
13 $reflection->getTrace();
19 $reflection->getExecutingFile();
25 $reflection->getExecutingLine();
32 var_dump($reflection->getExecutingFile());
33 var_dump($reflection->getExecutingLine());
38 $reflection->getTrace();
44 $reflection->getExecutingFile();
50 $reflection->getExecutingLine();
56 $reflection->getCallable();
H A DReflectionFiber_notrace_1.phpt8 $reflection = new ReflectionFiber($f);
10 var_dump($reflection->getExecutingFile());
11 var_dump($reflection->getExecutingLine());
12 var_dump($reflection->getTrace());
H A Dbug66430.phpt18 $reflection = new ReflectionObject($alpha);
20 $method = $reflection->getMethod("bravo");
25 echo "reflection of alpha.bravo: ", $method->invoke($alpha).PHP_EOL;
31 echo "reflection of c(alpha.bravo): ", $reflectionC->invoke().PHP_EOL;
36 reflection of alpha.bravo: Valid representation
42 reflection of c(alpha.bravo): Valid representation
H A DReflectionFiber_notrace_2.phpt11 $reflection = new \ReflectionFiber($f);
13 var_dump($reflection->getExecutingFile());
14 var_dump($reflection->getExecutingLine());
15 var_dump($reflection->getTrace());
H A Dbug64007.phpt5 $reflection = new ReflectionClass('Generator');
7 $generator = $reflection->newInstanceWithoutConstructor();
13 $generator = $reflection->newInstance();
H A DReflectionClass_isIterateable_variation1.phpt12 $reflection = new ReflectionClass($obj);
13 var_dump($reflection->isIterateable());
H A DReflectionProperty_setValue_readonly.phpt10 $reflection = new ReflectionProperty(Foo::class, 'value');
13 $reflection->setValue(Foo::Bar, 1);
H A DReflectionFiber_backtrace.phpt22 $reflection = new ReflectionFiber($fiber);
24 var_dump($reflection->getTrace(DEBUG_BACKTRACE_PROVIDE_OBJECT));
H A DReflectionClass_isIterateable_basic.phpt20 $reflection = new ReflectionClass($class);
21 var_dump($reflection->isIterateable());
/php-src/Zend/tests/traits/
H A Dconstant_019.phpt14 $reflection = new \ReflectionClass(TestTrait::class);
15 var_dump($reflection->getConstant('Constant'));
16 var_dump($reflection->getReflectionConstant('Constant')->getDeclaringClass()->getName());
18 $reflection = new \ReflectionClass(TestClass::class);
19 var_dump($reflection->getConstant('Constant'));
20 var_dump($reflection->getReflectionConstant('Constant')->getDeclaringClass()->getName());
H A Dconstant_021.phpt15 $reflection = new \ReflectionClass(TestTrait::class);
16 var_dump($reflection->getReflectionConstant('Constant')->getDocComment());
18 $reflection = new \ReflectionClass(TestClass::class);
19 var_dump($reflection->getReflectionConstant('Constant')->getDocComment());
H A Dconstant_020.phpt19 $reflection = new \ReflectionClass(TestTrait::class);
20 var_dump($reflection->getReflectionConstant('Constant')->getAttributes('TestAttribute')[0]->getArgu…
22 $reflection = new \ReflectionClass(TestClass::class);
23 var_dump($reflection->getReflectionConstant('Constant')->getAttributes('TestAttribute')[0]->getArgu…
/php-src/ext/date/tests/
H A Dbug-gh8471.phpt2 …egmentation fault when converting immutable and mutable DateTime instances created using reflection
5 $reflection = new ReflectionClass('\DateTime');
7 $mutable = $reflection->newInstanceWithoutConstructor();
15 $reflection = new ReflectionClass('\DateTime');
17 $mutable = $reflection->newInstanceWithoutConstructor();
25 $reflection = new ReflectionClass('\DateTimeImmutable');
27 $immutable = $reflection->newInstanceWithoutConstructor();
35 $reflection = new ReflectionClass('\DateTimeImmutable');
37 $immutable = $reflection->newInstanceWithoutConstructor();
/php-src/ext/com_dotnet/tests/
H A Dbug45280.phpt9 $reflection = new ReflectionObject($dict);
11 echo $reflection;
/php-src/Zend/tests/attributes/
H A D007_self_reflect_attribute.phpt6 $reflection = new \ReflectionClass(Attribute::class);
7 $attributes = $reflection->getAttributes();

Completed in 16 milliseconds

1234