php-src/Zend/tests/objects_028.phpt

26 lines
273 B
Plaintext
Raw Normal View History

2008-05-12 17:55:21 +00:00
--TEST--
Testing 'static::' and 'parent::' in calls
--FILE--
<?php
class bar {
public function __call($a, $b) {
print "hello\n";
}
}
class foo extends bar {
public function __construct() {
static::bar();
parent::bar();
}
}
new foo;
?>
--EXPECT--
hello
hello