forked from Shardj/zf1-future
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PHPUnit - mcrypt deprecated since php >= 7.1 so skip test (Shardj#272)
* phpunit - Skip test use method mcrypt_* on php >= 7.1 mcrypt_* function has been DEPRECATED as of PHP 7.1.0 and REMOVED as of PHP 7.2.0. Relying on this function is highly discouraged. * phpunit - skip run Openssl test on php >= 8.0 since php 8.0 will raise something like that 'ArgumentCountError: openssl_seal() expects at least 5 arguments, 4 given' * phpunit - ignore temp file make by test * phpunit - comment out Zend_CurrencyTest suite * phpunit - comment out Zend_Crypt_MathTest Suite * php 8.1 - fix deprecated message TypeError: count(): Argument #1 () must be of type Countable|array, null given PHP Deprecated: DOMDocument::__construct(): Passing null to parameter #2 () of type string is deprecated * phpunit - correctly Zend_Feed_* test suite and turn on Zend_Feed_AllTests suite * phpunit - back compatibility exception message for php < 8.0 * git - ignore temp file make by unittest * phpunit - back compatibility exception message for php < 8.0 for Zend_ProgressBar_Adapter_ConsoleTest * php <= 7.4 - fix warning 'A non well formed numeric value encountered' * github action - add step run phpunit on php 7.4 * github action - run phpunit on php 8.1, 8.0, 8.4 parallel
- Loading branch information
Showing
24 changed files
with
158 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,45 @@ | ||
name: run PHPUnit-9 | ||
name: PHPUnit-9 | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
phpunit: | ||
phpunit-php81: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Prevent entrypoint issue on load docker image jakzal/phpqa:php8.0-alpine | ||
- name: Prevent entrypoint issue on load docker image jakzal/phpqa:php | ||
run: mv composer.json composer.json.bk | ||
- name: PHPUnit 9 on php 8.1 | ||
uses: docker://jakzal/phpqa:php8.1-alpine | ||
with: | ||
args: /tools/phpunit --bootstrap tests/TestHelper.php tests/Zend/AllTests.php | ||
phpunit-php80: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Prevent entrypoint issue on load docker image jakzal/phpqa:php | ||
run: mv composer.json composer.json.bk | ||
- name: PHPUnit 9 on php 8.0 | ||
uses: docker://jakzal/phpqa:php8.0-alpine | ||
with: | ||
args: /tools/phpunit --bootstrap tests/TestHelper.php tests/Zend/AllTests.php | ||
- name: PHPUnit 9 on php 8.1 | ||
uses: docker://jakzal/phpqa:php8.1-alpine | ||
phpunit-php74: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Prevent entrypoint issue on load docker image jakzal/phpqa:php | ||
run: mv composer.json composer.json.bk | ||
- name: PHPUnit 9 on php 7.4 | ||
uses: docker://jakzal/phpqa:php7.4-alpine | ||
with: | ||
args: /tools/phpunit --bootstrap tests/TestHelper.php tests/Zend/AllTests.php | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.