Return to 012.phpt CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / reflection / tests |
1.1 misho 1: --TEST-- 2: ReflectionClass::getDefaultProperties() 3: --SKIPIF-- 4: <?php extension_loaded('reflection') or die('skip'); ?> 5: --FILE-- 6: <?php 7: class Foo { 8: public $test = "ok"; 9: } 10: $class = new ReflectionClass("Foo"); 11: $props = $class->getDefaultProperties(); 12: echo $props["test"]; 13: ?> 14: --EXPECT-- 15: ok 16: