protected function getPath($name) { $name = str_replace_first($this->rootNamespace(), '', $name); return $this->laravel->basePath() . '/tests' . str_replace('\\', '/', $name) . '.php'; }