diff options
Diffstat (limited to 'Zend/tests/ns_004.phpt')
-rw-r--r-- | Zend/tests/ns_004.phpt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Zend/tests/ns_004.phpt b/Zend/tests/ns_004.phpt new file mode 100644 index 0000000..d293f65 --- /dev/null +++ b/Zend/tests/ns_004.phpt @@ -0,0 +1,9 @@ +--TEST-- +004: Using global class name from namespace (unqualified - fail) +--FILE-- +<?php +namespace test\ns1; + +echo get_class(new Exception()),"\n"; +--EXPECTF-- +Fatal error: Class 'test\ns1\Exception' not found in %sns_004.php on line %d
\ No newline at end of file |