503f75d08b
These names don't make sense now that we run both suites the same way.
19 linhas
221 B
PHP
19 linhas
221 B
PHP
<?php
|
|
|
|
class A {
|
|
public function b() {
|
|
$cl = function() {
|
|
return $this->c();
|
|
};
|
|
yield $cl();
|
|
}
|
|
private function c() {
|
|
return 'A';
|
|
}
|
|
}
|
|
|
|
$a = new A;
|
|
foreach ($a->b() as $c) {
|
|
print "$c\n";
|
|
}
|