php-src/Zend/tests/ns_004.phpt
Stanislav Malyshev 1b4134c07b Namespace resolution streamlining patch
[DOC] new resolution rules should be documented soon
2008-11-11 19:45:29 +00:00

9 lines
236 B
PHP
Executable File

--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