Return to abstract-methods01.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: } 14: 15: $test = new TraitsTest(); 16: $test->hello(); 17: ?> 18: --EXPECTF-- 19: Fatal error: Class %s contains %d abstract method and must therefore be declared abstract or implement the remaining methods (%s) in %s on line %d