Skip to content

Commit

Permalink
Support PHPUnit 9 (#50)
Browse files Browse the repository at this point in the history
* Support PHPUnit 9

* Run tests on PHP 7.3 and 7.4

* Made ResultPrinter compatible with PHPUnit 9
  • Loading branch information
Naktibalda committed Feb 15, 2020
1 parent b0c5e18 commit fe4825c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Expand Up @@ -3,6 +3,8 @@ language: php
php:
- 7.1
- 7.2
- 7.3
- 7.4

before_script:
- composer update
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -12,7 +12,7 @@
"require": {
"php": ">=7.1.0",
"myclabs/deep-copy": "~1.1",
"phpunit/phpunit": ">=7.0 <9.0"
"phpunit/phpunit": ">=7.0 <10.0"
},
"autoload": {
"psr-0": {
Expand Down
8 changes: 7 additions & 1 deletion src/Codeception/Specify/ResultPrinter.php
Expand Up @@ -2,7 +2,13 @@

namespace Codeception\Specify;

class ResultPrinter extends \PHPUnit\TextUI\ResultPrinter
use PHPUnit\TextUI\DefaultResultPrinter;

if (!class_exists(DefaultResultPrinter::class)) {
class_alias(\PHPUnit\TextUI\ResultPrinter::class, DefaultResultPrinter::class);
}

class ResultPrinter extends DefaultResultPrinter
{
/**
* @param string $progress
Expand Down

0 comments on commit fe4825c

Please sign in to comment.