Skip to content

Commit a476a61

Browse files
authored
Support PHP 8.4 & 8.5 in CI (#195)
Also, remove Prophecy and use PHPUnit mocks.
1 parent 179cbcf commit a476a61

3 files changed

Lines changed: 336 additions & 307 deletions

File tree

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
strategy:
1010
fail-fast: false
1111
matrix:
12-
php: [7.4, 8.0, 8.1, 8.2, 8.3]
12+
php: [7.4, 8.0, 8.1, 8.2, 8.3, 8.4, 8.5]
1313

1414
steps:
1515
- name: Checkout

composer.json

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@
2323
"psr/http-server-middleware": "^1.0"
2424
},
2525
"require-dev": {
26-
"phpspec/prophecy": "^1.19",
27-
"phpspec/prophecy-phpunit": "^2.2",
2826
"phpunit/phpunit": "^9.6",
2927
"squizlabs/php_codesniffer": "^3.10"
3028
},
@@ -37,5 +35,19 @@
3735
"psr-4": {
3836
"Slim\\Csrf\\Tests\\": "tests"
3937
}
38+
},
39+
"scripts": {
40+
"sniffer:check": "phpcs --standard=phpcs.xml",
41+
"sniffer:fix": "phpcbf --standard=phpcs.xml",
42+
"test": "phpunit --do-not-cache-result --colors=always",
43+
"check": [
44+
"@sniffer:check",
45+
"@test:coverage"
46+
],
47+
"test:coverage": [
48+
"@putenv XDEBUG_MODE=coverage",
49+
"phpunit --do-not-cache-result --colors=always --coverage-clover build/coverage/clover.xml --coverage-html build/coverage --coverage-text"
50+
]
4051
}
52+
4153
}

0 commit comments

Comments
 (0)