php-src/Zend/tests/ns_048.phpt

12 lines
180 B
Plaintext
Raw Normal View History

2007-08-24 21:50:52 +08:00
--TEST--
048: __NAMESPACE__ constant and runtime names (ns name)
--FILE--
<?php
2008-12-05 04:12:30 +08:00
namespace test\ns1;
2007-08-24 21:50:52 +08:00
const FOO = 0;
2008-12-05 04:12:30 +08:00
var_dump(constant(__NAMESPACE__ . "\\FOO"));
2007-08-24 21:50:52 +08:00
--EXPECT--
int(0)