summaryrefslogtreecommitdiff
path: root/Zend/tests/class_alias_002.phpt
blob: 7a6eb126a920e2da388fb6733328b6cb8c88a761 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--TEST--
Trying redeclare class with class_alias()
--FILE--
<?php

class foo { }

class_alias('foo', 'FOO');

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