php-src/Zend/tests/class_alias_003.phpt

23 lines
254 B
Plaintext
Raw Normal View History

2008-05-12 13:30:50 +00:00
--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) {
}