mirror of
https://github.com/php/php-src.git
synced 2024-12-25 17:59:52 +08:00
ded3d984c6
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
26 lines
327 B
PHP
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
|