Skip to content
This repository was archived by the owner on May 26, 2021. It is now read-only.

add in php 9 support #3

Merged
merged 1 commit into from
Apr 22, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 30 additions & 5 deletions ResultPrinter.php
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
<?php
/**
* Copyright (c) 2014-2018 Ryan Parman <http://ryanparman.com>
* Copyright (c) 2014-2020 Ryan Parman <http://ryanparman.com>
*/
namespace Skyzyx\ResultPrinter;

use PHPUnit\Extensions\PhptTestCase;
use PHPUnit\Framework\Test;
use PHPUnit\Framework\TestCase;
use PHPUnit\Framework\TestSuite;
use PHPUnit\TextUI\ResultPrinter as PPrinter;
use PHPUnit\Runner\PhptTestCase;
use PHPUnit\TextUI\DefaultResultPrinter as PPrinter;
use PHPUnit\Util\Test as TestUtil;

/**
* Class ResultPrinter
* @package Skyzyx\ResultPrinter
*/
class ResultPrinter extends PPrinter
{
/** @var string */
Expand All @@ -34,10 +38,31 @@ class ResultPrinter extends PPrinter
/** @var string */
protected $passEmoji = "\xE2\x9c\x93"; // Checkmark

/** @var int */
protected $numTestsRun;

/** @var int */
protected $numTests;

/** @var int */
protected $column;

/** @var int */
protected $numTestsWidth;

/** @var int */
protected $maxColumn;

/** @var bool */
protected $lastTestFailed;

/** @var int */
protected $numAssertions;

/**
* {@inheritdoc}
* @param string $progress
*/
protected function writeProgress($progress): void
protected function writeProgress(string $progress): void
{
switch ($progress) {
case 'E':
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"description": "A custom printer for PHPUnit.",
"type": "library",
"require": {
"php": ">=7.1",
"phpunit/phpunit": "^7.0"
"php": ">=7.2",
"phpunit/phpunit": "^9.0"
},
"license": "MIT",
"authors": [
Expand Down