xref: /php-src/Zend/tests/namespaces/ns_069.phpt (revision 275f63e7)
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