Skip to content

Commit

Permalink
Add unit tests for PHPCompatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
ronilaukkarinen committed Feb 25, 2024
1 parent d3e0eb0 commit 76527df
Show file tree
Hide file tree
Showing 5 changed files with 469 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,9 @@ jobs:
run: |
vendor/bin/phpcs -p . --extensions=php --ignore=vendor,node_modules,src,js,css,sass --standard=phpcs.xml
- name: Test for PHP8.3 compatibility
run: |
vendor/bin/phpcs -p . --extensions=php --ignore=vendor,node_modules,src,js,css,sass --standard=PHPCompatibility --runtime-set testVersion 8.3
- name: Test PHP for syntax errors
run: find -L . -name '*.php' -print0 | xargs -0 -n 1 -P 4 php -l
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
vendor/
templates/
content/
move_out.sh
Expand Down
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* Prepare for PHP version 8.3
* Allow short array syntax for WPCS 3.0.1
* Fix accessibility strings always getting english versions if set to be translated via polylang
* Merge pull request #212 from digitoimistodude/dependabot/npm_and_yarn/ip-2.0.1
* Add unit tests for PHPCompatibility

### 9.3.6: 2024-01-10

Expand Down Expand Up @@ -32,7 +34,7 @@

### 9.3.5: 2023-09-12

* Use semver + date in newtheme.sh start script
* Use semver + date in newtheme.sh startscript
* Add self-updater to the start script

### 9.3.4: 2023-09-07
Expand Down
7 changes: 5 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
}
},
"require-dev": {
"wp-coding-standards/wpcs": "^3.0",
"phpcompatibility/php-compatibility": "*"
"wp-coding-standards/wpcs": "^2.3.0",
"phpcompatibility/php-compatibility": "*",
"phpcsstandards/phpcsutils": "^1.0",
"squizlabs/php_codesniffer": "*",
"phpcsstandards/phpcsextra": "^1.2.0"
}
}
Loading

0 comments on commit 76527df

Please sign in to comment.