php-src/Zend/tests/ns_004.phpt

12 lines
303 B
Plaintext
Raw Normal View History

2007-07-12 09:23:48 +00:00
--TEST--
2008-12-04 20:12:30 +00:00
004: Using global class name from namespace (unqualified - fail)
2007-07-12 09:23:48 +00:00
--FILE--
<?php
2008-12-04 20:12:30 +00:00
namespace test\ns1;
2007-07-12 09:23:48 +00:00
echo get_class(new Exception()),"\n";
2008-12-04 20:12:30 +00:00
--EXPECTF--
Fatal error: Uncaught Error: Class 'test\ns1\Exception' not found in %sns_004.php:%d
Stack trace:
#0 {main}
thrown in %sns_004.php on line %d