From 97dbda92e67f84b6295db5ec1350afd73267042e Mon Sep 17 00:00:00 2001 From: Filip Ganyicz Date: Thu, 6 Apr 2023 14:58:40 +0200 Subject: [PATCH] Update stub extensions --- src/Plugins/Init.php | 10 +++++----- .../Feature/{ExampleTest.php => ExampleTest.php.stub} | 0 stubs/init-laravel/{Pest.php => Pest.php.stub} | 0 stubs/init-laravel/{TestCase.php => TestCase.php.stub} | 0 .../Unit/{ExampleTest.php => ExampleTest.php.stub} | 0 stubs/init-laravel/{phpunit.xml => phpunit.xml.stub} | 0 .../Feature/{ExampleTest.php => ExampleTest.php.stub} | 0 stubs/init/{Pest.php => Pest.php.stub} | 0 stubs/init/{TestCase.php => TestCase.php.stub} | 0 .../Unit/{ExampleTest.php => ExampleTest.php.stub} | 0 stubs/init/{phpunit.xml => phpunit.xml.stub} | 0 11 files changed, 5 insertions(+), 5 deletions(-) rename stubs/init-laravel/Feature/{ExampleTest.php => ExampleTest.php.stub} (100%) rename stubs/init-laravel/{Pest.php => Pest.php.stub} (100%) rename stubs/init-laravel/{TestCase.php => TestCase.php.stub} (100%) rename stubs/init-laravel/Unit/{ExampleTest.php => ExampleTest.php.stub} (100%) rename stubs/init-laravel/{phpunit.xml => phpunit.xml.stub} (100%) rename stubs/init/Feature/{ExampleTest.php => ExampleTest.php.stub} (100%) rename stubs/init/{Pest.php => Pest.php.stub} (100%) rename stubs/init/{TestCase.php => TestCase.php.stub} (100%) rename stubs/init/Unit/{ExampleTest.php => ExampleTest.php.stub} (100%) rename stubs/init/{phpunit.xml => phpunit.xml.stub} (100%) diff --git a/src/Plugins/Init.php b/src/Plugins/Init.php index 40c988ab..18277294 100644 --- a/src/Plugins/Init.php +++ b/src/Plugins/Init.php @@ -26,11 +26,11 @@ final class Init implements HandlesArguments * The files that will be created. */ private const STUBS = [ - 'phpunit.xml' => 'phpunit.xml', - 'Pest.php' => 'tests/Pest.php', - 'TestCase.php' => 'tests/TestCase.php', - 'Unit/ExampleTest.php' => 'tests/Unit/ExampleTest.php', - 'Feature/ExampleTest.php' => 'tests/Feature/ExampleTest.php', + 'phpunit.xml.stub' => 'phpunit.xml', + 'Pest.php.stub' => 'tests/Pest.php', + 'TestCase.php.stub' => 'tests/TestCase.php', + 'Unit/ExampleTest.php.stub' => 'tests/Unit/ExampleTest.php', + 'Feature/ExampleTest.php.stub' => 'tests/Feature/ExampleTest.php', ]; /** diff --git a/stubs/init-laravel/Feature/ExampleTest.php b/stubs/init-laravel/Feature/ExampleTest.php.stub similarity index 100% rename from stubs/init-laravel/Feature/ExampleTest.php rename to stubs/init-laravel/Feature/ExampleTest.php.stub diff --git a/stubs/init-laravel/Pest.php b/stubs/init-laravel/Pest.php.stub similarity index 100% rename from stubs/init-laravel/Pest.php rename to stubs/init-laravel/Pest.php.stub diff --git a/stubs/init-laravel/TestCase.php b/stubs/init-laravel/TestCase.php.stub similarity index 100% rename from stubs/init-laravel/TestCase.php rename to stubs/init-laravel/TestCase.php.stub diff --git a/stubs/init-laravel/Unit/ExampleTest.php b/stubs/init-laravel/Unit/ExampleTest.php.stub similarity index 100% rename from stubs/init-laravel/Unit/ExampleTest.php rename to stubs/init-laravel/Unit/ExampleTest.php.stub diff --git a/stubs/init-laravel/phpunit.xml b/stubs/init-laravel/phpunit.xml.stub similarity index 100% rename from stubs/init-laravel/phpunit.xml rename to stubs/init-laravel/phpunit.xml.stub diff --git a/stubs/init/Feature/ExampleTest.php b/stubs/init/Feature/ExampleTest.php.stub similarity index 100% rename from stubs/init/Feature/ExampleTest.php rename to stubs/init/Feature/ExampleTest.php.stub diff --git a/stubs/init/Pest.php b/stubs/init/Pest.php.stub similarity index 100% rename from stubs/init/Pest.php rename to stubs/init/Pest.php.stub diff --git a/stubs/init/TestCase.php b/stubs/init/TestCase.php.stub similarity index 100% rename from stubs/init/TestCase.php rename to stubs/init/TestCase.php.stub diff --git a/stubs/init/Unit/ExampleTest.php b/stubs/init/Unit/ExampleTest.php.stub similarity index 100% rename from stubs/init/Unit/ExampleTest.php rename to stubs/init/Unit/ExampleTest.php.stub diff --git a/stubs/init/phpunit.xml b/stubs/init/phpunit.xml.stub similarity index 100% rename from stubs/init/phpunit.xml rename to stubs/init/phpunit.xml.stub