Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
2 changes: 2 additions & 0 deletions src/PantherTestCaseTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down Expand Up @@ -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
}
Expand Down
3 changes: 1 addition & 2 deletions tests/ClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down