Version 1
[yaffs-website] / vendor / symfony / var-dumper / Tests / Fixtures / GeneratorDemo.php
diff --git a/vendor/symfony/var-dumper/Tests/Fixtures/GeneratorDemo.php b/vendor/symfony/var-dumper/Tests/Fixtures/GeneratorDemo.php
new file mode 100644 (file)
index 0000000..e2d24c8
--- /dev/null
@@ -0,0 +1,21 @@
+<?php
+
+namespace Symfony\Component\VarDumper\Tests\Fixtures;
+
+class GeneratorDemo
+{
+    public static function foo()
+    {
+        yield 1;
+    }
+
+    public function baz()
+    {
+        yield from bar();
+    }
+}
+
+function bar()
+{
+    yield from GeneratorDemo::foo();
+}