php-src/Zend/tests/class_alias_003.phpt
2008-05-12 13:31:36 +00:00

23 lines
254 B
PHP

--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) {
}