- Add new test

This commit is contained in:
Marcus Boerger 2008-08-12 11:51:34 +00:00
parent aa87beaded
commit 5506e024d4
2 changed files with 27 additions and 0 deletions

3
Zend/tests/ns_069.inc Normal file
View File

@ -0,0 +1,3 @@
<?php
var_dump((binary)__NAMESPACE__);

24
Zend/tests/ns_069.phpt Normal file
View File

@ -0,0 +1,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===