summaryrefslogtreecommitdiff
path: root/Zend/tests/class_alias_007.phpt
blob: edcc096ade47a198bdc7480d4664772f6fd00c68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--TEST--
Testing class_alias() using autoload
--FILE--
<?php

spl_autoload_register(function ($a) {
	class foo { }
});

class_alias('foo', 'bar', 1);

var_dump(new foo, new bar);

?>
--EXPECTF--
object(foo)#%d (0) {
}
object(foo)#%d (0) {
}