1--TEST--
2A static method can be a generator
3--FILE--
4<?php
5
6class Test {
7    public static function gen() {
8        var_dump(get_class());
9        var_dump(get_called_class());
10        yield 1;
11        yield 2;
12        yield 3;
13    }
14}
15
16class ExtendedTest extends Test {
17}
18
19foreach (ExtendedTest::gen() as $i) {
20    var_dump($i);
21}
22
23?>
24--EXPECT--
25string(4) "Test"
26string(12) "ExtendedTest"
27int(1)
28int(2)
29int(3)
30