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 619ffab..f6d13ca 100644 --- a/composer.json +++ b/composer.json @@ -16,17 +16,17 @@ }, "require": { "php": "^8.1", - "illuminate/contracts": "^10.0", - "illuminate/http": "^10.0", - "illuminate/support": "^10.0", - "illuminate/view": "^10.0" + "illuminate/contracts": "^10.0|^11.0", + "illuminate/http": "^10.0|^11.0", + "illuminate/support": "^10.0|^11.0", + "illuminate/view": "^10.0|^11.0" }, "require-dev": { "exolnet/phpcs-config": "^2.0", "laravel/pint": "^1.1", "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 36239d0..53bceab 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,22 +1,17 @@ - +> tests - + src/ - + diff --git a/tests/Feature/BladeTest.php b/tests/Feature/BladeTest.php index 07a4889..21433a8 100644 --- a/tests/Feature/BladeTest.php +++ b/tests/Feature/BladeTest.php @@ -30,7 +30,7 @@ public function testDirective(string $directive, bool $state): void /** * @return \Generator */ - public function provideTestDirective(): Generator + public static function provideTestDirective(): Generator { yield ['launch', true]; yield ['launch', false]; diff --git a/tests/Unit/Strategy/CallbackTest.php b/tests/Unit/Strategy/CallbackTest.php index 502ff9b..cc5da84 100644 --- a/tests/Unit/Strategy/CallbackTest.php +++ b/tests/Unit/Strategy/CallbackTest.php @@ -26,7 +26,7 @@ public function testLaunch($expected): void /** * @return \Generator */ - public function provideTestLaunch(): Generator + public static function provideTestLaunch(): Generator { yield [true]; yield [false]; diff --git a/tests/Unit/Strategy/ConfigTest.php b/tests/Unit/Strategy/ConfigTest.php index 3426bb4..e09e16e 100644 --- a/tests/Unit/Strategy/ConfigTest.php +++ b/tests/Unit/Strategy/ConfigTest.php @@ -44,7 +44,7 @@ public function testLaunch(bool $expected): void /** * @return array */ - public function provideTestLaunch(): array + public static function provideTestLaunch(): array { return [ [true], diff --git a/tests/Unit/Strategy/DateTest.php b/tests/Unit/Strategy/DateTest.php index a2d8ce7..e7ecd1d 100644 --- a/tests/Unit/Strategy/DateTest.php +++ b/tests/Unit/Strategy/DateTest.php @@ -49,7 +49,7 @@ public function testLaunch($date, $operator, $expected): void /** * @return \Generator */ - public function provideTestLaunch(): Generator + public static function provideTestLaunch(): Generator { yield ['2019-12-31', '<', true]; yield ['2020-01-01', '<', false]; diff --git a/tests/Unit/Strategy/EnvironmentTest.php b/tests/Unit/Strategy/EnvironmentTest.php index 24ca496..e9a1124 100644 --- a/tests/Unit/Strategy/EnvironmentTest.php +++ b/tests/Unit/Strategy/EnvironmentTest.php @@ -46,7 +46,7 @@ public function testLaunch($environments, string $actualEnvironment, bool $expec /** * @return \Generator */ - public function provideTestLaunch(): Generator + public static function provideTestLaunch(): Generator { yield ['local', 'local', true]; yield ['local', 'production', false]; diff --git a/tests/Unit/Strategy/HostnameTest.php b/tests/Unit/Strategy/HostnameTest.php index 301be41..ad5f87f 100644 --- a/tests/Unit/Strategy/HostnameTest.php +++ b/tests/Unit/Strategy/HostnameTest.php @@ -33,7 +33,7 @@ public function testLaunch($hosts, string $actualHost, bool $expectedLaunch): vo /** * @return \Generator */ - public function provideTestLaunch(): Generator + public static function provideTestLaunch(): Generator { yield ['localhost', 'localhost', true]; yield ['localhost', 'bento.dev', false];