Skip to content

Commit a43d04e

Browse files
committed
support PHP ^7.2, phpunit ^7.1 & ^8.0 ^9.0
1 parent 114bab5 commit a43d04e

File tree

5 files changed

+30
-7
lines changed

5 files changed

+30
-7
lines changed

.github/workflows/ci.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,25 @@ jobs:
5656
with:
5757
files: coverage.xml
5858
token: ${{ secrets.CODECOV_TOKEN }}
59+
60+
cs-stan:
61+
name: Coding Standard & Static Analysis
62+
runs-on: ubuntu-24.04
63+
64+
steps:
65+
- uses: actions/checkout@v4
66+
67+
- name: Setup PHP
68+
uses: shivammathur/setup-php@v2
69+
with:
70+
php-version: '7.4'
71+
extensions: mbstring, intl
72+
coverage: none
73+
tools: phive, cs2pr
74+
75+
- name: Composer install
76+
run: composer update
77+
78+
- name: Run phpcs
79+
if: always()
80+
run: vendor/bin/phpcs --report=checkstyle src/ tests/ | cs2pr

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ composer.phar
77
.phpunit.cache
88

99
/coverage.xml
10-
/auth.json
10+
/tmp
1111

1212
# OS generated files #
1313
######################

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@ Help your phpunit tests to load resources from files, like, json content, raw e-
1212

1313
## Version map
1414

15-
| branch | This package version | PHP min |
16-
|:------:|----------------------|:-------:|
17-
| 1.x | ^1.0 | PHP 7.2 |
15+
| branch | This package version | PHP min | PHPUnit |
16+
|:------:|----------------------|:-------:|:--------------------:|
17+
| 1.x | ^1.0 | PHP 7.2 | ^7.1 \| ^8.0 \| ^9.0 |
18+
| 2.0 | ^2.0 | PHP 8.0 | ^8.5 \| ^9.3 |
1819

1920
## Usage
2021

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@
2222
],
2323
"require": {
2424
"php": "^7.2",
25-
"ext-json": "*"
25+
"ext-json": "*",
26+
"phpunit/phpunit": "^7.1 | ^8.0 | ^9.0"
2627
},
2728
"require-dev": {
2829
"cakephp/cakephp-codesniffer": "^4.0",
29-
"phpunit/phpunit": "^8.5",
3030
"symfony/var-dumper": "^v5.0"
3131
},
3232
"autoload": {

tests/TestCase/FileTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ protected function tearDown(): void
2929
public function testGetPathUnknown(): void
3030
{
3131
$this->expectException(\InvalidArgumentException::class);
32-
$this->expectErrorMessage('Path "unknown.file" not found');
32+
$this->expectExceptionMessage('Path "unknown.file" not found');
3333
File::getPath('unknown.file');
3434
}
3535

0 commit comments

Comments
 (0)