public static function getMockForGenerator($class, $method)
{
if (!isset(self::$generator_mocks[$class][$method])) {
throw new \RuntimeException("Generator {$class}::{$method} is not mocked");
}
return self::$generator_mocks[$class][$method];
}