Return to abstract-methods03.phpt CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / Zend / tests / traits / bugs |
1.1 misho 1: --TEST-- 2: Abstract Trait Methods should behave like common abstract methods. 3: --FILE-- 4: <?php 5: error_reporting(E_ALL); 6: 7: trait THello { 8: public abstract function hello(); 9: } 10: 11: class TraitsTest { 12: use THello; 13: public function hello() { 14: echo 'Hello'; 15: } 16: } 17: 18: $test = new TraitsTest(); 19: $test->hello(); 20: ?> 21: --EXPECTF-- 22: Hello