--TEST-- Non-static closures can be generators --FILE-- getGenFactory(); var_dump($genFactory()->current()); ?> --EXPECT-- object(Test)#1 (0) { }