503f75d08b
These names don't make sense now that we run both suites the same way.
31 linhas
378 B
PHP
31 linhas
378 B
PHP
<?php
|
|
|
|
trait A {
|
|
public function b() {
|
|
return function() {
|
|
return array(
|
|
__CLASS__,
|
|
get_class($this)
|
|
);
|
|
};
|
|
}
|
|
}
|
|
|
|
class C {
|
|
use A;
|
|
public function d() {
|
|
return function() {
|
|
return array(
|
|
__CLASS__,
|
|
get_class($this)
|
|
);
|
|
};
|
|
}
|
|
}
|
|
|
|
$c = new C;
|
|
$b = $c->b();
|
|
var_dump($b());
|
|
$d = $c->d();
|
|
var_dump($d());
|