diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 6323faa..12f582b 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -11,22 +11,18 @@ jobs: strategy: fail-fast: true matrix: - php: [7.4, 8.0, 8.1, 8.2] - laravel: [8.*, 9.*, 10.*] + php: [8.1, 8.2, 8.3] + laravel: [10.*, 11.*] dependency-version: [prefer-stable] exclude: - - php: 7.4 - laravel: 9.* - - php: 7.4 - laravel: 10.* - - php: 8.0 - laravel: 10.* + - php: 8.1 + laravel: 11.* name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Setup PHP uses: shivammathur/setup-php@v2 @@ -42,4 +38,4 @@ jobs: composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction - name: Execute tests - run: vendor/bin/phpunit --verbose + run: vendor/bin/phpunit diff --git a/composer.json b/composer.json index b24a4a6..d26ffde 100644 --- a/composer.json +++ b/composer.json @@ -23,15 +23,15 @@ } ], "require": { - "php": ">=7.1|^8.0", + "php": "^8.1", "ext-json": "*", - "illuminate/config": "5.8.* || ^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0", - "illuminate/support": "5.8.* || ^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0" + "illuminate/config": "^10.0 || ^11.0", + "illuminate/support": "^10.0 || ^11.0" }, "require-dev": { - "orchestra/testbench": "~3.8.4 || ^4.0 || ^5.0 || ^6.0 || ^7.0 || ^8.0", + "orchestra/testbench": "^8.0 || ^9.0", "phpspec/phpspec": "~5.1.1 || ^6.0 || ^7.0", - "phpunit/phpunit": "^9.0" + "phpunit/phpunit": "^9.0 || ^10.0" }, "autoload": { "psr-4": { diff --git a/phpunit.xml.dist b/phpunit.xml.dist index a1bcfca..940da59 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,30 +1,14 @@ - ./tests + tests + ./tests/SEOTools/BaseTest.php - - - ./src - - - - - - - - - diff --git a/tests/SEOTools/BaseTest.php b/tests/SEOTools/BaseTest.php index 07a3ec4..7eb4bf2 100644 --- a/tests/SEOTools/BaseTest.php +++ b/tests/SEOTools/BaseTest.php @@ -9,7 +9,7 @@ /** * Class BaseTest. */ -abstract class BaseTest extends TestCase +class BaseTest extends TestCase { /** * {@inheritdoc} diff --git a/tests/SEOTools/SEOMetaTest.php b/tests/SEOTools/SEOMetaTest.php index eb96108..5dd738c 100644 --- a/tests/SEOTools/SEOMetaTest.php +++ b/tests/SEOTools/SEOMetaTest.php @@ -168,7 +168,7 @@ public function test_set_canonical() $this->assertEquals($canonical, $this->seoMeta->getCanonical()); } - public function dataTestUrls() + public static function dataTestUrls() { return [ ['http://localhost/hello/world', 'http://localhost/hello/world'], diff --git a/tests/SEOTools/SEOToolsServiceProviderTest.php b/tests/SEOTools/SEOToolsServiceProviderTest.php index f85b7a4..e0eeee3 100644 --- a/tests/SEOTools/SEOToolsServiceProviderTest.php +++ b/tests/SEOTools/SEOToolsServiceProviderTest.php @@ -26,7 +26,7 @@ public function test_container_are_provided($contract, $concreteClass) /** * @return array */ - public function bindsListProvider() + public static function bindsListProvider() { return [ [