Annotation of embedaddon/php/Zend/tests/traits/language001.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Single Trait with simple trait method
                      3: --FILE--
                      4: <?php
                      5: error_reporting(E_ALL);
                      6: 
                      7: trait THello {
                      8:   public function hello() {
                      9:     echo 'Hello';
                     10:   }
                     11: }
                     12: 
                     13: class TraitsTest {
                     14:        use THello;
                     15: }
                     16: 
                     17: $test = new TraitsTest();
                     18: $test->hello();
                     19: ?>
                     20: --EXPECTF--    
                     21: Hello

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>