xref: /PHP-7.1/Zend/tests/ns_069.phpt (revision 4ff965ee)
1--TEST--
2069: Include inside namespaced method
3--FILE--
4<?php
5
6namespace foo;
7
8class Test {
9  static function f() {
10    var_dump((binary)__NAMESPACE__);
11    include __DIR__ . '/ns_069.inc';
12    var_dump((binary)__NAMESPACE__);
13  }
14}
15
16Test::f();
17
18?>
19===DONE===
20--EXPECT--
21string(3) "foo"
22string(0) ""
23string(3) "foo"
24===DONE===
25