mirror of
https://github.com/php/php-src.git
synced 2024-12-14 12:26:19 +08:00
16 lines
212 B
PHP
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
|