option('test-directory')); /* @phpstan-ignore-next-line */ $pest = base_path(testDirectory('Pest.php')); $stubs = 'stubs/Laravel'; if (File::exists($pest)) { throw new InvalidConsoleArgument(sprintf('%s already exist', $pest)); } File::copy(implode(DIRECTORY_SEPARATOR, [ dirname(__DIR__, 3), $stubs, 'Pest.php', ]), $pest); $this->output->success('`tests/Pest.php` created successfully.'); if (!(bool) $this->option('no-interaction')) { (new Thanks($this->output))(); } } }