Annotation of embedaddon/php/Zend/tests/constants_006.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Magic constants lowercased
! 3: --FILE--
! 4: <?php
! 5:
! 6: namespace test;
! 7:
! 8: var_dump(__dir__);
! 9: var_dump(__file__);
! 10: var_dump(__line__);
! 11:
! 12: class foo {
! 13: public function __construct() {
! 14: var_dump(__method__);
! 15: var_dump(__class__);
! 16: var_dump(__function__);
! 17: }
! 18: }
! 19:
! 20: new foo;
! 21:
! 22: var_dump(__namespace__);
! 23:
! 24: ?>
! 25: --EXPECTF--
! 26: string(%d) "%s"
! 27: string(%d) "%s"
! 28: int(%d)
! 29: string(21) "test\foo::__construct"
! 30: string(8) "test\foo"
! 31: string(11) "__construct"
! 32: string(4) "test"
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>