xref: /PHP-5.3/Zend/tests/class_alias_003.phpt (revision 5c2ff404)
1--TEST--
2Testing declaration of alias to 'static'
3--FILE--
4<?php
5
6class bar {
7}
8
9class foo {
10	public function test() {
11		class_alias('bar', 'static');
12		return new static;
13	}
14}
15
16$a = new foo;
17var_dump($a->test());
18
19?>
20--EXPECTF--
21object(foo)#%d (0) {
22}
23