mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
15 lines
249 B
PHP
15 lines
249 B
PHP
--TEST--
|
|
Testing creation of alias using an existing interface name
|
|
--FILE--
|
|
<?php
|
|
|
|
class foo { }
|
|
|
|
interface test { }
|
|
|
|
|
|
class_alias('foo', 'test');
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Warning: Cannot redeclare class test (previously declared in %s:%d) in %s on line %d
|