awesomite / phpunit-4.8-fixer
Fixes issues in PHPUnit 4.8 on PHP 7.2
Installs: 6 566
Dependents: 5
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- phpunit/phpunit: ^4.8.36
This package is auto-updated.
Last update: 2024-12-13 22:27:17 UTC
README
Function each
is deprecated from PHP 7.2, it causes errors in PHPUnit 4.8:
Deprecated: The each() function is deprecated.
This message will be suppressed on further calls in (...)/phpunit/src/Util/Getopt.php
This library fixes the above issue.
Installation
composer require awesomite/phpunit-4.8-fixer
Usage
Execute the following command once before executing tests:
vendor/bin/phpunit-4.8-fixer