summaryrefslogtreecommitdiff
path: root/Zend/tests/ns_069.phpt
blob: 19b6fe8c2bd23686c80c63839ce5b601f1b772fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--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();

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