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

1.1       misho       1: --TEST--
                      2: class constants basic tests
                      3: --FILE--
                      4: <?php
                      5: 
                      6: class test {
                      7:        const val = "string";
                      8:        const val2 = 1;
                      9: }
                     10: 
                     11: var_dump(test::val);
                     12: var_dump(test::val2);
                     13: 
                     14: var_dump(test::val3);
                     15: 
                     16: echo "Done\n";
                     17: ?>
                     18: --EXPECTF--    
                     19: string(6) "string"
                     20: int(1)
                     21: 
                     22: Fatal error: Undefined class constant 'val3' in %s on line %d

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