diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 3cec8dc..06948b0 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -10,11 +10,16 @@ jobs: fail-fast: true matrix: php: [8.1, 8.2] - laravel: [10.*] + laravel: [10.*, 11.*] dependency-version: [prefer-lowest, prefer-stable] + exclude: + - php: 8.1 + laravel: 11.* include: - laravel: 10.* testbench: 8.* + - laravel: 11.* + testbench: 9.* name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} diff --git a/composer.json b/composer.json index 4811edb..b7de310 100644 --- a/composer.json +++ b/composer.json @@ -17,13 +17,13 @@ ], "require": { "php": "^8.1", - "illuminate/console": "^10.0", - "illuminate/support": "^10.0" + "illuminate/console": "^10.0|^11.0", + "illuminate/support": "^10.0|^11.0" }, "require-dev": { "mockery/mockery": "^1.4", - "orchestra/testbench": "^8.0", - "phpunit/phpunit": "^9.3.3", + "orchestra/testbench": "^8.0|^9.0", + "phpunit/phpunit": "^10.5", "squizlabs/php_codesniffer": "^3.6" }, "autoload": { diff --git a/phpunit.xml.dist b/phpunit.xml.dist index f2eebe0..53bceab 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,22 +1,17 @@ - +> tests - - + + src/ - - + + diff --git a/tests/Unit/Console/DbUpgradeCommandTest.php b/tests/Unit/Console/DbUpgradeCommandTest.php index 6a93094..6553c66 100644 --- a/tests/Unit/Console/DbUpgradeCommandTest.php +++ b/tests/Unit/Console/DbUpgradeCommandTest.php @@ -7,7 +7,7 @@ use Mockery as m; use Symfony\Component\Process\ExecutableFinder; -class DbUpgradeCommandTest extends UnitTest +class DbUpgradeCommandTest extends TestCase { /** * @var \Illuminate\Filesystem\Filesystem|\Mockery\LegacyMockInterface|\Mockery\MockInterface diff --git a/tests/Unit/UnitTest.php b/tests/Unit/TestCase.php similarity index 60% rename from tests/Unit/UnitTest.php rename to tests/Unit/TestCase.php index fc437fe..99bf9c6 100644 --- a/tests/Unit/UnitTest.php +++ b/tests/Unit/TestCase.php @@ -3,9 +3,9 @@ namespace Exolnet\DbUpgrade\Tests\Unit; use Mockery; -use PHPUnit\Framework\TestCase; +use PHPUnit\Framework\TestCase as BaseTestCase; -abstract class UnitTest extends TestCase +abstract class TestCase extends BaseTestCase { public function tearDown(): void {