1
0
mirror of https://github.com/php/php-src.git synced 2026-04-22 23:48:14 +02:00
Files
archived-php-src/Zend/tests/ns_004.phpt
T
2020-07-10 21:05:28 +02:00

13 lines
294 B
PHP

--TEST--
004: Using global class name from namespace (unqualified - fail)
--FILE--
<?php
namespace test\ns1;
echo get_class(new Exception()),"\n";
--EXPECTF--
Fatal error: Uncaught Error: Class "test\ns1\Exception" not found in %s:%d
Stack trace:
#0 {main}
thrown in %sns_004.php on line %d