summaryrefslogtreecommitdiff
path: root/Zend/tests/class_alias_004.phpt
blob: ea3501ed57ff19a25845bf7f6b3ae802087772be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--TEST--
Testing creation of alias using an existing interface name
--FILE--
<?php

class foo { }

interface test { }


class_alias('foo', 'test');

?>
--EXPECTF--
Warning: Cannot declare class test, because the name is already in use in %s on line %d