Skip to content

Commit ab34d0a

Browse files
committed
Support PHPUnit 10
1 parent 8d65b02 commit ab34d0a

File tree

7 files changed

+13
-12
lines changed

7 files changed

+13
-12
lines changed

.github/workflows/static-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313

1414
steps:
15-
- uses: actions/checkout@v2
15+
- uses: actions/checkout@v3
1616

1717
- name: Install PHP
1818
uses: shivammathur/setup-php@v2

.github/workflows/webdriver-chrome-headless.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313

1414
steps:
15-
- uses: actions/checkout@v2
15+
- uses: actions/checkout@v3
1616

1717
- run: docker run -d --net=host --shm-size=2g selenium/standalone-chrome:3.141.59-oxygen
1818

@@ -21,7 +21,7 @@ jobs:
2121

2222
- name: Cache Composer packages
2323
id: composer-cache
24-
uses: actions/cache@v2
24+
uses: actions/cache@v3
2525
with:
2626
path: vendor
2727
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}

.github/workflows/webdriver-chrome.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313

1414
steps:
15-
- uses: actions/checkout@v2
15+
- uses: actions/checkout@v3
1616

1717
- run: docker run -d --net=host --shm-size=2g selenium/standalone-chrome:3.141.59-oxygen
1818

@@ -21,7 +21,7 @@ jobs:
2121

2222
- name: Cache Composer packages
2323
id: composer-cache
24-
uses: actions/cache@v2
24+
uses: actions/cache@v3
2525
with:
2626
path: vendor
2727
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}

.github/workflows/webdriver-firefox.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313

1414
steps:
15-
- uses: actions/checkout@v2
15+
- uses: actions/checkout@v3
1616

1717
- run: docker run -d --net=host --shm-size=2g selenium/standalone-firefox:3.141.59-oxygen
1818

composer.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,17 @@
1616
"name": "Zaahid Bateson"
1717
}
1818
],
19-
"minimum-stability": "dev",
19+
"minimum-stability": "RC",
2020

2121
"require": {
22-
"php": "^8.0",
22+
"php": "^8.1",
2323
"ext-json": "*",
2424
"ext-mbstring": "*",
25-
"codeception/codeception": "^5.0.0-RC2",
25+
"codeception/codeception": "dev-phpunit10 as 5.0.8",
2626
"codeception/lib-web": "^1.0.1",
2727
"codeception/stub": "^4.0",
28-
"php-webdriver/webdriver": "^1.8.0"
28+
"php-webdriver/webdriver": "^1.8.0",
29+
"phpunit/phpunit": "^10.0"
2930
},
3031
"suggest": {
3132
"codeception/phpbuiltinserver": "Start and stop PHP built-in web server for your tests"

src/Codeception/Constraint/WebDriver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ protected function matches($nodes): bool
4747
* @param string|array|WebDriverBy $selector
4848
* @param ComparisonFailure|null $comparisonFailure
4949
*/
50-
protected function fail($nodes, $selector, ComparisonFailure $comparisonFailure = null): void
50+
protected function fail($nodes, $selector, ComparisonFailure $comparisonFailure = null): never
5151
{
5252
if (count($nodes) === 0) {
5353
throw new ElementNotFound($selector, 'Element located either by name, CSS or XPath');

src/Codeception/Constraint/WebDriverNot.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ protected function matches($nodes): bool
2525
* @param string|array|WebDriverBy $selector
2626
* @param ComparisonFailure|null $comparisonFailure
2727
*/
28-
protected function fail($nodes, $selector, ComparisonFailure $comparisonFailure = null): void
28+
protected function fail($nodes, $selector, ComparisonFailure $comparisonFailure = null): never
2929
{
3030
if (!is_string($selector) || strpos($selector, "'") === false) {
3131
$selector = Locator::humanReadableString($selector);

0 commit comments

Comments
 (0)