php-src/Zend/tests/class_alias_014.phpt
2020-07-10 21:05:28 +02: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