summaryrefslogtreecommitdiff
path: root/Zend/tests/class_alias_003.phpt
blob: 57e2fd572e667bf19316599dacfe76c314c6cf9e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--TEST--
Testing declaration of alias to 'static'
--FILE--
<?php

class bar {
}

class foo { 
	public function test() {
		class_alias('bar', 'static');
		return new static;
	}
}

$a = new foo;
var_dump($a->test());

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