/php-src/ext/zend_test/tests/ |
H A D | attribute_arguments.phpt | 8 $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 D | attribute-deprecated.phpt | 10 $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 D | attribute-named-parameter.phpt | 8 $reflection = new ReflectionFunction("zend_test_attribute_with_named_argument"); 9 $attribute = $reflection->getAttributes()[0];
|
H A D | gh13970.phpt | 13 $reflection = new ReflectionFunction('test'); 16 var_dump($reflection->getAttributes()[0]->newInstance());
|
H A D | variadic_arguments.phpt | 8 $reflection = new ReflectionMethod("_ZendTestClass", "variadicTest"); 9 $arguments = $reflection->getParameters();
|
/php-src/ext/reflection/tests/ |
H A D | bug52057.phpt | 8 $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 D | ReflectionAttribute_newInstance_deprecated.phpt | 22 $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 D | ReflectionFiber_basic.phpt | 9 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 D | ReflectionZendExtension.phpt | 9 $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 D | ReflectionMethod_getDocComment_property_list.phpt | 21 $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 D | ReflectionFiber_errors.phpt | 10 $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 D | ReflectionFiber_notrace_1.phpt | 8 $reflection = new ReflectionFiber($f); 10 var_dump($reflection->getExecutingFile()); 11 var_dump($reflection->getExecutingLine()); 12 var_dump($reflection->getTrace());
|
H A D | bug66430.phpt | 18 $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 D | ReflectionFiber_notrace_2.phpt | 11 $reflection = new \ReflectionFiber($f); 13 var_dump($reflection->getExecutingFile()); 14 var_dump($reflection->getExecutingLine()); 15 var_dump($reflection->getTrace());
|
H A D | bug64007.phpt | 5 $reflection = new ReflectionClass('Generator'); 7 $generator = $reflection->newInstanceWithoutConstructor(); 13 $generator = $reflection->newInstance();
|
H A D | ReflectionClass_isIterateable_variation1.phpt | 12 $reflection = new ReflectionClass($obj); 13 var_dump($reflection->isIterateable());
|
H A D | ReflectionProperty_setValue_readonly.phpt | 10 $reflection = new ReflectionProperty(Foo::class, 'value'); 13 $reflection->setValue(Foo::Bar, 1);
|
H A D | ReflectionFiber_backtrace.phpt | 22 $reflection = new ReflectionFiber($fiber); 24 var_dump($reflection->getTrace(DEBUG_BACKTRACE_PROVIDE_OBJECT));
|
H A D | ReflectionClass_isIterateable_basic.phpt | 20 $reflection = new ReflectionClass($class); 21 var_dump($reflection->isIterateable());
|
/php-src/Zend/tests/traits/ |
H A D | constant_019.phpt | 14 $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 D | constant_021.phpt | 15 $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 D | constant_020.phpt | 19 $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 D | bug-gh8471.phpt | 2 …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 D | bug45280.phpt | 9 $reflection = new ReflectionObject($dict); 11 echo $reflection;
|
/php-src/Zend/tests/attributes/ |
H A D | 007_self_reflect_attribute.phpt | 6 $reflection = new \ReflectionClass(Attribute::class); 7 $attributes = $reflection->getAttributes();
|