503f75d08b
These names don't make sense now that we run both suites the same way.
20 linhas
244 B
PHP
20 linhas
244 B
PHP
<?php
|
|
class Foo {
|
|
private function f() {
|
|
return 'Foo';
|
|
}
|
|
}
|
|
trait T {
|
|
private function f() {
|
|
return 'Bar';
|
|
}
|
|
}
|
|
class Bar extends Foo {
|
|
use T;
|
|
function inv() {
|
|
return $this->f();
|
|
}
|
|
}
|
|
$b = new Bar();
|
|
echo $b->inv()."\n";
|