Skip to content

Commit

Permalink
Support PHPUnit 11
Browse files Browse the repository at this point in the history
  • Loading branch information
Naktibalda committed Feb 2, 2024
1 parent 9d94838 commit ea00f63
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ jobs:
runs-on: ubuntu-latest

env:
COMPOSER_ROOT_VERSION: 3.99.99
COMPOSER_ROOT_VERSION: 4.99.99

strategy:
matrix:
php: [8.1, 8.2]
php: [8.1, 8.2, 8.3]

steps:
- name: Checkout code
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"ext-mbstring": "*",
"codeception/codeception": "^5.0.8",
"codeception/lib-web": "^1.0.1",
"phpunit/phpunit": "^10.0",
"phpunit/phpunit": "^10.0 || ^11.0",
"symfony/browser-kit": "^4.4.24 || ^5.4 || ^6.0 || ^7.0",
"symfony/dom-crawler": "^4.4.30 || ^5.4 || ^6.0 || ^7.0"
},
Expand Down
6 changes: 4 additions & 2 deletions tests/data/app/data.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@ public static function clean()
protected static function load()
{
$data = file_get_contents(__DIR__.self::$filename);
$data = $data ? unserialize($data) : $data = array();
if (!is_array($data)) $data = array();
$data = $data ? unserialize(trim($data)) : [];
if (!is_array($data)) {
$data = [];
}
return $data;
}

Expand Down

0 comments on commit ea00f63

Please sign in to comment.