awesomite/phpunit-4.8-fixer

Fixes issues in PHPUnit 4.8 on PHP 7.2

v1.0.0 2017-12-31 10:52 UTC

This package is auto-updated.

Last update: 2024-12-13 22:27:17 UTC


README

Coverage Status Build Status

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