xref: /PHP-7.2/Zend/tests/generators/bug72523.phpt (revision d1dd474f)
1--TEST--
2Bug #72523 (dtrace issue with reflection (failed test))
3--FILE--
4<?php
5
6$gen = (new class() {
7	function a() {
8		yield "okey";
9	}
10})->a();
11
12var_dump($gen->current());
13?>
14--EXPECT--
15string(4) "okey"
16