1--TEST--
2Values can be sent back to the generator
3--FILE--
4<?php
5
6function gen() {
7    var_dump(yield "yield foo");
8    var_dump(yield "yield bar");
9}
10
11$gen = gen();
12var_dump($gen->current());
13$gen->send("send bar");
14var_dump($gen->current());
15$gen->send("send foo");
16
17?>
18--EXPECT--
19string(9) "yield foo"
20string(8) "send bar"
21string(9) "yield bar"
22string(8) "send foo"
23