public static function restoreGenerator($class, $method) { unset(self::$generator_mocks[$class][$method]); }