xref: /PHP-7.0/Zend/tests/ns_004.phpt (revision e97d5fab)
1--TEST--
2004: Using global class name from namespace (unqualified - fail)
3--FILE--
4<?php
5namespace test\ns1;
6
7echo get_class(new Exception()),"\n";
8--EXPECTF--
9Fatal error: Uncaught Error: Class 'test\ns1\Exception' not found in %sns_004.php:%d
10Stack trace:
11#0 {main}
12  thrown in %sns_004.php on line %d