EOTXT
,
$f );
} public function testGenerator() { if (\
extension_loaded('xdebug'
)) { $this->
markTestSkipped('xdebug is active'
);
} $generator =
new GeneratorDemo();
$generator =
$generator->
baz();
$expectedDump = <<<'EODUMP'
Generator {
this: Symfony\Component\VarDumper\Tests\Fixtures\GeneratorDemo { …}
%s: {
%sGeneratorDemo.php:14 {
Symfony\Component\VarDumper\Tests\Fixtures\GeneratorDemo->baz()
› {
› yield from bar();
› }
}
%A}
closed: false
}