503f75d08b
These names don't make sense now that we run both suites the same way.
22 linhas
243 B
PHP
22 linhas
243 B
PHP
<?php
|
|
|
|
abstract class A {
|
|
protected abstract function foo();
|
|
}
|
|
|
|
class B extends A {
|
|
protected function foo() {
|
|
echo "B::foo\n";
|
|
}
|
|
}
|
|
|
|
class C extends A {
|
|
function foo() {
|
|
$b = new B;
|
|
$b->foo();
|
|
}
|
|
}
|
|
|
|
$c = new C;
|
|
$c->foo();
|