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