1
0
mirror of https://github.com/php/php-src.git synced 2026-04-29 03:03:26 +02:00
Files
archived-php-src/Zend/tests/ns_004.phpt
T
Máté Kocsis 7aacc705d0 Add many missing closing PHP tags to tests
Closes GH-5958
2020-08-09 22:03:36 +02:00

14 lines
297 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