php-src/Zend/tests/ns_069.phpt
2016-11-20 21:11:53 +01:00

25 lines
311 B
PHP

--TEST--
069: Include inside namespaced method
--FILE--
<?php
namespace foo;
class Test {
static function f() {
var_dump(__NAMESPACE__);
include __DIR__ . '/ns_069.inc';
var_dump(__NAMESPACE__);
}
}
Test::f();
?>
===DONE===
--EXPECT--
string(3) "foo"
string(0) ""
string(3) "foo"
===DONE===