mirror of
https://github.com/php/php-src.git
synced 2024-12-16 05:15:03 +08:00
d30cd7d7e7
Closes GH-5590
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
|