php-src/Zend/tests/class_alias_014.phpt
2008-05-12 14:58:41 +00:00

16 lines
212 B
PHP

--TEST--
Testing creation of alias to class name without namespace prefix
--FILE--
<?php
namespace foo;
class bar {
}
class_alias('bar', 'baz');
?>
--EXPECTF--
Warning: Class 'bar' not found in %s on line %d