Willkommen bei WordPress. Dies ist dein erster Beitrag. Bearbeite oder lösche ihn und beginne mit dem Schreiben!
Hallo Welt!
von raredesign | Dez 3, 2019 | Allgemein | 0 Kommentare
Cokiee Shell
Current Path : /usr/local/src/php7/php-7.0.5/ext/reflection/tests/ |
Current File : //usr/local/src/php7/php-7.0.5/ext/reflection/tests/ReflectionObject_isInstantiable_basic.phpt |
--TEST-- ReflectionObject::IsInstantiable() - basic function test --FILE-- <?php class C { } interface iface { function f1(); } class ifaceImpl implements iface { function f1() {} } abstract class abstractClass { function f1() {} abstract function f2(); } class D extends abstractClass { function f2() {} } $classes = array("C", "ifaceImpl", "D"); foreach($classes as $class ) { $ro = new ReflectionObject(new $class); echo "Is $class instantiable? "; var_dump($ro->IsInstantiable()); } ?> --EXPECTF-- Is C instantiable? bool(true) Is ifaceImpl instantiable? bool(true) Is D instantiable? bool(true)
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare