diff --git a/composer.json b/composer.json index b44590e..92971a9 100644 --- a/composer.json +++ b/composer.json @@ -1,44 +1,31 @@ { "name": "plannr/laravel-fast-refresh-database", "description": "Refresh your database faster than you've ever seen before 🚀", - "type": "library", "license": "MIT", - "autoload": { - "psr-4": { - "Plannr\\Laravel\\FastRefreshDatabase\\": "src/" - } - }, + "type": "library", "authors": [ { "name": "Sam Carré", "email": "29132017+Sammyjo20@users.noreply.github.com" } ], - "minimum-stability": "stable", "require": { "php": "^8.1", - "symfony/process": "^5.0|^6.0" + "symfony/process": "^6.0 || ^7.0" }, "require-dev": { - "orchestra/testbench": "^7.17", - "pestphp/pest": "^1.22", "friendsofphp/php-cs-fixer": "^3.13", - "symfony/var-dumper": "^6.2" + "orchestra/testbench": "^9.0" + }, + "minimum-stability": "stable", + "autoload": { + "psr-4": { + "Plannr\\Laravel\\FastRefreshDatabase\\": "src/" + } }, "scripts": { - "post-autoload-dump": [ - "@php vendor/bin/testbench package:discover --ansi" - ], - "test": [ - "./vendor/bin/pest" - ], "fix-code": [ "./vendor/bin/php-cs-fixer fix" ] - }, - "config": { - "allow-plugins": { - "pestphp/pest-plugin": true - } } } diff --git a/src/Traits/FastRefreshDatabase.php b/src/Traits/FastRefreshDatabase.php index dc58e9f..34bfa21 100644 --- a/src/Traits/FastRefreshDatabase.php +++ b/src/Traits/FastRefreshDatabase.php @@ -3,11 +3,11 @@ namespace Plannr\Laravel\FastRefreshDatabase\Traits; use SplFileInfo; +use Illuminate\Support\Str; use Symfony\Component\Finder\Finder; use Symfony\Component\Process\Process; -use Illuminate\Database\ConnectionInterface; -use Illuminate\Support\Str; use Illuminate\Contracts\Console\Kernel; +use Illuminate\Database\ConnectionInterface; use Illuminate\Foundation\Testing\RefreshDatabase; use Illuminate\Foundation\Testing\RefreshDatabaseState; use Plannr\Laravel\FastRefreshDatabase\Data\FastRefreshDatabaseState; diff --git a/tests/ExampleTest.php b/tests/ExampleTest.php deleted file mode 100644 index 61cd84c..0000000 --- a/tests/ExampleTest.php +++ /dev/null @@ -1,5 +0,0 @@ -toBeTrue(); -}); diff --git a/tests/Pest.php b/tests/Pest.php deleted file mode 100644 index 156ed14..0000000 --- a/tests/Pest.php +++ /dev/null @@ -1,17 +0,0 @@ -in(__DIR__);