diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 9332153..b6e73ab 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -8,12 +8,12 @@ jobs: strategy: fail-fast: true matrix: - php: [8.2, 8.1, 8.0] - laravel: [9.*] + php: [8.3, 8.2, 8.1] + laravel: [10.*] dependency-version: [prefer-lowest, prefer-stable] include: - - laravel: 9.* - testbench: 7.* + - laravel: 10.* + testbench: 8.* name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} diff --git a/README.md b/README.md index 61f1ecd..0a13be9 100644 --- a/README.md +++ b/README.md @@ -9,9 +9,8 @@ This package allows you to seamlessly use the [Browser Kit features](https://github.com/laravel/browser-kit-testing) in more modern Laravel installations. ## Requirements -* Laravel 9. -* PHP 8.0 or higher. -* Support for [Package Discovery](https://laravel.com/docs/5.5/packages#package-discovery). +* Laravel 10 +* PHP 8.1 or higher ## Sponsor this package! diff --git a/composer.json b/composer.json index fcc0496..3c1680e 100644 --- a/composer.json +++ b/composer.json @@ -8,15 +8,15 @@ "homepage": "https://github.com/protonemedia/laravel-browser-kit-macro", "type": "library", "require": { - "php": "^8.0 || ^8.1 || ^8.2", - "laravel/browser-kit-testing": "^6.0", - "illuminate/http": "^9.0", - "illuminate/support": "^9.0", + "php": "^8.1 || ^8.2 || ^8.3", + "laravel/browser-kit-testing": "^7.0", + "illuminate/http": "^10.0", + "illuminate/support": "^10.0", "symfony/dom-crawler": "^6.0" }, "require-dev": { - "orchestra/testbench": "^7.0", - "phpunit/phpunit": "^9.4" + "orchestra/testbench": "^8.0", + "phpunit/phpunit": "^10.4" }, "license": "MIT", "authors": [ diff --git a/phpunit.xml.dist b/phpunit.xml.dist index f2eebe0..f9aad31 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,22 +1,12 @@ + backupGlobals="false" + colors="true" + processIsolation="false" + stopOnFailure="false"> tests - - - src/ - - - + \ No newline at end of file diff --git a/src/BrowserKitMacroServiceProvider.php b/src/BrowserKitMacroServiceProvider.php index e96e528..f6a72ce 100644 --- a/src/BrowserKitMacroServiceProvider.php +++ b/src/BrowserKitMacroServiceProvider.php @@ -33,7 +33,7 @@ public function register() $class = class_exists(ModernTestResponse::class) ? ModernTestResponse::class : LegacyTestResponse::class; $class::macro('browserKit', function ($callback) { - $testCase = (new BrowserKitTestCase) + $testCase = (new BrowserKitTestCase(get_class($this))) ->setApp(app()) ->setResponse($this->baseResponse);