diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ed8bf5aa..2941bb10 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,7 +19,7 @@ jobs: tools: php-cs-fixer, cs2pr - name: PHP Coding Standards Fixer - run: php-cs-fixer fix --dry-run --format checkstyle | cs2pr + run: php-cs-fixer fix --dry-run --diff phpstan: runs-on: ubuntu-latest @@ -190,8 +190,8 @@ jobs: - name: Remove phpunit-bridge dependency (not yet PHPUnit 10+ compliant) run: composer remove --dev symfony/phpunit-bridge - - name: Install latest PHPUnit 11 - run: composer require --dev --prefer-dist 'phpunit/phpunit:>=10' + - name: Install latest PHPUnit 10 + run: composer require --dev --prefer-dist 'phpunit/phpunit:10.5.*' - name: Run tests run: vendor/bin/phpunit --configuration phpunit.xml.dist.10 diff --git a/src/PantherTestCaseTrait.php b/src/PantherTestCaseTrait.php index d1860da5..886d74f9 100644 --- a/src/PantherTestCaseTrait.php +++ b/src/PantherTestCaseTrait.php @@ -203,6 +203,7 @@ protected static function createPantherClient(array $options = [], array $kernel } } + /* @phpstan-ignore-next-line */ if (is_a(self::class, KernelTestCase::class, true)) { static::bootKernel($kernelOptions); // @phpstan-ignore-line } @@ -247,6 +248,7 @@ protected static function createHttpBrowserClient(array $options = [], array $ke self::$httpBrowserClient = new HttpBrowserClient(HttpClient::create($httpClientOptions)); } + /* @phpstan-ignore-next-line */ if (is_a(self::class, KernelTestCase::class, true)) { static::bootKernel($kernelOptions); // @phpstan-ignore-line } diff --git a/tests/ClientTest.php b/tests/ClientTest.php index edda41dd..e65cef1a 100644 --- a/tests/ClientTest.php +++ b/tests/ClientTest.php @@ -282,8 +282,7 @@ public function testExecuteAsyncScript(): void const t = document.querySelector(parentArgs[0]).innerText; callback(t); }, 100, arguments); -JS - , ['.p-1']); +JS, ['.p-1']); $this->assertSame('P1', $innerText); }