diff options
Diffstat (limited to 'Zend/tests/class_alias_005.phpt')
-rw-r--r-- | Zend/tests/class_alias_005.phpt | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Zend/tests/class_alias_005.phpt b/Zend/tests/class_alias_005.phpt new file mode 100644 index 0000000..47c825b --- /dev/null +++ b/Zend/tests/class_alias_005.phpt @@ -0,0 +1,27 @@ +--TEST-- +Testing static call method using the original class name +--FILE-- +<?php + +class foo { + static public function msg() { + print "hello\n"; + } +} + +interface test { } + + +class_alias('foo', 'baz'); + +class bar extends baz { + public function __construct() { + foo::msg(); + } +} + +new bar; + +?> +--EXPECT-- +hello |