0
0
mirror of https://github.com/php/php-src.git synced 2024-12-25 17:59:52 +08:00
php-src/Zend/tests/bug43200_2.phpt
Gabriel Caruso ded3d984c6 Use EXPECT instead of EXPECTF when possible
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
2018-02-20 21:53:48 +01:00

26 lines
327 B
PHP

--TEST--
Bug #43200.2 (Interface implementation / inheritance not possible in abstract classes)
--FILE--
<?php
interface A {
function foo();
}
abstract class B implements A {
abstract public function foo();
}
class C extends B {
public function foo() {
echo 'works';
}
}
$o = new C();
$o->foo();
?>
--EXPECT--
works