8000 Merge pull request #67 from Codeception/phpunit11 · Codeception/lib-innerbrowser@d9fbf1c · GitHub
[go: up one dir, main page]

Skip to content

Commit d9fbf1c

Browse files
authored
Merge pull request #67 from Codeception/phpunit11
Support PHPUnit 11
2 parents 9d94838 + ea00f63 commit d9fbf1c

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ jobs:
77
runs-on: ubuntu-latest
88

99
env:
10-
COMPOSER_ROOT_VERSION: 3.99.99
10+
COMPOSER_ROOT_VERSION: 4.99.99
1111

1212
strategy:
1313
matrix:
14-
php: [8.1, 8.2]
14+
php: [8.1, 8.2, 8.3]
1515

1616
steps:
1717
- name: Checkout code

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"ext-mbstring": "*",
2525
"codeception/codeception": "^5.0.8",
2626
"codeception/lib-web": "^1.0.1",
27-
"phpunit/phpunit": "^10.0",
27+
"phpunit/phpunit": "^10.0 || ^11.0",
2828
"symfony/browser-kit": "^4.4.24 || ^5.4 || ^6.0 || ^7.0",
2929
"symfony/dom-crawler": "^4.4.30 || ^5.4 || ^6.0 || ^7.0"
3030
},

tests/data/app/data.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,10 @@ public static function clean()
3030
protected static function load()
3131
{
3232
$data = file_get_contents(__DIR__.self::$filename);
33-
$data = $data ? unserialize($data) : $data = array();
34-
if (!is_array($data)) $data = array();
33+
$data = $data ? unserialize(trim($data)) : [];
34+
if (!is_array($data)) {
35+
$data = [];
36+
}
3537
return $data;
3638
}
3739

0 commit comments

Comments
 (0)
0