Skip to content

Commit 8440cc6

Browse files
committed
Increase minimal support PHP version to PHP 7.4
Use "::class" PHP8 "strlen(null)" warning fix Static data providers PHP8 PDO integer data type issues Correct removed "ExtendedPso::getDsn" usages Missing "use ..." clauses for "::class" commit PHPUnit 10 fixes PHPUnit 9 fixes Switch to "yoast/phpunit-polyfills" library YAML schema fix; Missing PHPUnit 10.x config Rename GitHub Actions runs Use correct PHP version during build Correct dependency issues during build Update used GitHub Actions Comment-out PHP versions not supported by "goaop/parser-reflection" PHP 7.4 top namespace leading "\" fixture changes
1 parent 2a1a3cc commit 8440cc6

16 files changed

+3207
-274
lines changed

Diff for: .github/workflows/main.yml

+18-21
Original file line numberDiff line numberDiff line change
@@ -15,41 +15,38 @@ jobs:
1515
fail-fast: false
1616
matrix:
1717
include:
18-
- php-versions: '5.6'
19-
phpunit-versions: '5.7.27'
20-
- php-versions: '7.0'
21-
phpunit-versions: '6.5.14'
22-
- php-versions: '7.1'
23-
phpunit-versions: '7.5.20'
24-
- php-versions: '7.2'
25-
phpunit-versions: '7.5.20'
26-
- php-versions: '7.3'
27-
phpunit-versions: '7.5.20'
28-
- php-versions: '7.4'
29-
phpunit-versions: '7.5.20'
30-
# - php-versions: '8.0'
31-
# phpunit-versions: '9.5.1'
32-
33-
name: PHP ${{ matrix.php-versions }}, PHPUnit ${{ matrix.phpunit-versions }}
18+
- php: '7.4'
19+
phpunit_config: 'phpunit.xml.dist' # PHPUnit 9.6
20+
# - php: '8.0'
21+
# phpunit_config: 'phpunit.xml.dist' # PHPUnit 9.6
22+
# - php: '8.1'
23+
# phpunit_config: 'phpunit10.xml.dist' # PHPUnit 10.5
24+
- php: '8.2'
25+
phpunit_config: 'phpunit10.xml.dist' # PHPUnit 10.5
26+
- php: '8.3'
27+
phpunit_config: 'phpunit10.xml.dist' # PHPUnit 10.5
28+
29+
name: Tests (PHP ${{ matrix.php }})
3430
steps:
3531
- name: Checkout
36-
uses: actions/checkout@v3
32+
uses: actions/checkout@v4
3733

3834
- name: Setup PHP
3935
uses: shivammathur/setup-php@v2
4036
with:
41-
php-version: ${{ matrix.php-versions }}
37+
php-version: ${{ matrix.php }}
4238
coverage: xdebug
43-
tools: phpunit:${{ matrix.phpunit-versions }}
4439
extensions: pdo_sqlite
4540

4641
- name: Install Dependencies
47-
uses: ramsey/composer-install@v2
42+
uses: ramsey/composer-install@v3
43+
with:
44+
dependency-versions: "highest"
4845

4946
- name: Run Tests
5047
run: |
5148
mkdir -p build/logs
52-
phpunit --coverage-clover build/logs/clover.xml
49+
vendor/bin/phpunit --configuration ${{ matrix.phpunit_config }} --coverage-clover build/logs/clover.xml
5350
5451
- name: Downloading Scrutinizer CI binary
5552
run: wget https://scrutinizer-ci.com/ocular.phar

Diff for: composer.json

+8-5
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,20 @@
33
"description": "A tool for analysing other project code bases",
44
"license": "BSD-3-Clause",
55
"require": {
6-
"php": ">=5.6.0",
7-
"console-helpers/console-kit": "^0.1",
6+
"php": ">=7.4",
7+
"console-helpers/console-kit": "^0.3",
88
"symfony/finder": "^2.8",
9-
"goaop/parser-reflection": "^1.4",
9+
"goaop/parser-reflection": "^3.0 || ^4.0 || 4.0.0-RC2",
1010
"console-helpers/db-migration": "^0.1.0",
11-
"aura/sql": "^2.5",
11+
"aura/sql": "^2.5 || ^3.0 || ^4.0 || ^5.0",
1212
"doctrine/cache": "^1.5",
1313
"camspiers/json-pretty": "^1.0"
1414
},
1515
"require-dev": {
16-
"aik099/coding-standard": "dev-master"
16+
"aik099/coding-standard": "dev-master",
17+
"yoast/phpunit-polyfills": "^2.0",
18+
"phpspec/prophecy": "^1.10",
19+
"console-helpers/prophecy-phpunit": "^2.0@dev"
1720
},
1821
"autoload": {
1922
"psr-4": {

0 commit comments

Comments
 (0)