php-src/Zend/tests/ns_049.phpt

10 lines
160 B
Plaintext
Raw Normal View History

2007-08-24 13:50:52 +00:00
--TEST--
049: __NAMESPACE__ constant and runtime names (php name)
--FILE--
<?php
const FOO = 0;
2008-12-04 20:12:30 +00:00
var_dump(constant(__NAMESPACE__ . "\\FOO"));
2007-08-24 13:50:52 +00:00
--EXPECT--
int(0)