summaryrefslogtreecommitdiff
path: root/Zend/tests/ns_069.phpt
blob: 63269d0de7d15d8fc057a95e8796bb2519af0813 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--TEST--
069: Include inside namespaced method
--FILE--
<?php

namespace foo;

class Test {
  static function f() {
    var_dump((binary)__NAMESPACE__);
    include __DIR__ . '/ns_069.inc';
    var_dump((binary)__NAMESPACE__);
  }
}

Test::f();

?>
===DONE===
--EXPECT--
string(3) "foo"
string(0) ""
string(3) "foo"
===DONE===