diff options
Diffstat (limited to 'Zend/tests/class_alias_003.phpt')
-rw-r--r-- | Zend/tests/class_alias_003.phpt | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Zend/tests/class_alias_003.phpt b/Zend/tests/class_alias_003.phpt new file mode 100644 index 0000000..57e2fd5 --- /dev/null +++ b/Zend/tests/class_alias_003.phpt @@ -0,0 +1,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) { +} |