php-src/Zend/tests/get_parent_class_001.phpt
Steph Fox 6d8760677d - killed off UEXPECT
- altered EXPECT for parser errors. This may or may not be a Good Thing.
2008-05-26 14:33:44 +00:00

29 lines
356 B
PHP

--TEST--
Testing get_parent_class()
--FILE--
<?php
interface ITest {
function foo();
}
abstract class bar implements ITest {
public function foo() {
var_dump(get_parent_class());
}
}
class foo extends bar {
public function __construct() {
var_dump(get_parent_class());
}
}
$a = new foo;
$a->foo();
?>
--EXPECT--
unicode(3) "bar"
bool(false)