diff options
author | Stanislav Malyshev <stas@php.net> | 2008-11-11 19:45:29 +0000 |
---|---|---|
committer | Stanislav Malyshev <stas@php.net> | 2008-11-11 19:45:29 +0000 |
commit | 1b4134c07b8176efb0455b2e87398b0fafbfdce0 (patch) | |
tree | a70401d3198dd30f11e49ea1c4b102667bb567c7 /Zend/tests/ns_055.phpt | |
parent | caa133b3d36ea1fdf3bfbc3da6d8406c2d962862 (diff) | |
download | php-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-x | Zend/tests/ns_055.phpt | 9 |
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 |