diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 336393a..8da2621 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,29 +13,35 @@ jobs: fail-fast: true matrix: os: [ubuntu-latest, windows-latest] - php: [7.4, 8.0, 8.1] - laravel: [8.*, 9.*, 10.*] + php: [8.1, 8.2, 8.3, 8.4] + laravel: [10.*, 11.*, 12.*, 13.*] stability: [prefer-stable] include: + - laravel: 13.* + testbench: 11.* + - laravel: 12.* + testbench: 10.* + - laravel: 11.* + testbench: 9.* - laravel: 10.* testbench: 8.* - - laravel: 9.* - testbench: 7.* - - laravel: 8.* - testbench: 6.* exclude: - - laravel: 10.* - php: 8.0 - - laravel: 10.* - php: 7.4 - - laravel: 9.* - php: 7.4 + # Laravel 13 requires PHP 8.3+ + - laravel: 13.* + php: 8.1 + - laravel: 13.* + php: 8.2 + # Laravel 11 and 12 require PHP 8.2+ + - laravel: 12.* + php: 8.1 + - laravel: 11.* + php: 8.1 name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }} steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Setup PHP uses: shivammathur/setup-php@v2 diff --git a/composer.json b/composer.json index b8d7a85..0f2088a 100644 --- a/composer.json +++ b/composer.json @@ -17,12 +17,12 @@ } ], "require": { - "php": "^7.4|^8.0|^8.1|^8.2|^8.3", - "illuminate/support": "^8.0|^9.0|^10.0|^11.0|^12.0", + "php": "^7.4|^8.0|^8.1|^8.2|^8.3|^8.4", + "illuminate/support": "^8.0|^9.0|^10.0|^11.0|^12.0|^13.0", "guzzlehttp/guzzle": "^7.0" }, "require-dev": { - "orchestra/testbench": "^6.0|^7.0|^8.0|^9.0", + "orchestra/testbench": "^6.0|^7.0|^8.0|^9.0|^10.0|^11.0", "phpunit/phpunit": "^8.0 || ^9.5 || ^10.5 || ^11.0 || ^12.0" }, "autoload": { diff --git a/tests/FriendlyCaptchaTest.php b/tests/FriendlyCaptchaTest.php index f6686d6..e7735a6 100644 --- a/tests/FriendlyCaptchaTest.php +++ b/tests/FriendlyCaptchaTest.php @@ -25,10 +25,7 @@ public function setUp(): void $this->captcha = new FriendlyCaptcha('{secret-key}', '{site-key}', 'https://api.friendlycaptcha.com/api/v1/puzzle', 'https://api.friendlycaptcha.com/api/v1/siteverify'); } - /** - * @test - */ - public function it_can_render_unpkg_widget_script_correctly() + public function test_it_can_render_unpkg_widget_script_correctly() { $this->assertTrue($this->captcha instanceof FriendlyCaptcha); @@ -39,10 +36,7 @@ public function it_can_render_unpkg_widget_script_correctly() $this->assertStringContainsString($expectedScriptTwo, $this->captcha->renderWidgetScripts()); } - /** - * @test - */ - public function it_can_render_jsdelivr_widget_script_correctly() + public function test_it_can_render_jsdelivr_widget_script_correctly() { $this->assertTrue($this->captcha instanceof FriendlyCaptcha); @@ -53,10 +47,7 @@ public function it_can_render_jsdelivr_widget_script_correctly() $this->assertStringContainsString($expectedScriptTwo, $this->captcha->renderWidgetScripts('jsdelivr')); } - /** - * @test - */ - public function it_can_render_widget_correctly() + public function test_it_can_render_widget_correctly() { $this->assertTrue($this->captcha instanceof FriendlyCaptcha);