summaryrefslogtreecommitdiff
path: root/Zend/tests/ns_055.phpt
diff options
context:
space:
mode:
authorStanislav Malyshev <stas@php.net>2008-11-11 19:45:29 +0000
committerStanislav Malyshev <stas@php.net>2008-11-11 19:45:29 +0000
commit1b4134c07b8176efb0455b2e87398b0fafbfdce0 (patch)
treea70401d3198dd30f11e49ea1c4b102667bb567c7 /Zend/tests/ns_055.phpt
parentcaa133b3d36ea1fdf3bfbc3da6d8406c2d962862 (diff)
downloadphp-git-1b4134c07b8176efb0455b2e87398b0fafbfdce0.tar.gz
Namespace resolution streamlining patch
[DOC] new resolution rules should be documented soon
Diffstat (limited to 'Zend/tests/ns_055.phpt')
-rwxr-xr-xZend/tests/ns_055.phpt9
1 files changed, 2 insertions, 7 deletions
diff --git a/Zend/tests/ns_055.phpt b/Zend/tests/ns_055.phpt
index e10a55c513..a692e47601 100755
--- a/Zend/tests/ns_055.phpt
+++ b/Zend/tests/ns_055.phpt
@@ -11,23 +11,18 @@ class Foo {
function test2(\test\ns1\Foo $x) {
echo "ok\n";
}
- function test3(Exception $x) {
- echo "ok\n";
- }
- function test4(\Exception $x) {
+ function test3(\Exception $x) {
echo "ok\n";
}
}
$foo = new Foo();
-$ex = new Exception();
+$ex = new \Exception();
$foo->test1($foo);
$foo->test2($foo);
$foo->test3($ex);
-$foo->test4($ex);
?>
--EXPECT--
ok
ok
ok
-ok