Skip to content

Commit 24294a3

Browse files
committed
Partial refactor to supports new ResultPrinter interfaces shipped with phpunit v9
1 parent 60df1bd commit 24294a3

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/ResultPrinter.php

+9-9
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,27 @@
44

55
use PHPUnit\Framework\Test;
66
use PHPUnit\Framework\TestSuite;
7-
use PHPUnit\TextUI\ResultPrinter as originalResultPrinter;
87
use PHPUnit\Framework\TestResult;
8+
use PHPUnit\TextUI\DefaultResultPrinter;
99

1010
/**
1111
* Class ResultPrinter
1212
* @package clagiordano\MarketplacesDataExport
1313
*/
14-
class ResultPrinter extends originalResultPrinter
14+
class ResultPrinter extends DefaultResultPrinter
1515
{
16-
/** @var double $executionTime */
17-
protected $executionTime = 0.00;
16+
/** @var float $executionTime */
17+
protected float $executionTime = 0.00;
1818
/** @var string $testStatus */
19-
protected $testStatus = null;
19+
protected string $testStatus = "";
2020
/** @var string $testName */
21-
protected $testName = null;
21+
protected string $testName = "";
2222
/** @var int $suiteTestCurrent */
23-
protected $suiteTestCurrent = 0;
23+
protected int $suiteTestCurrent = 0;
2424
/** @var int $suiteTestTotal */
25-
protected $suiteTestTotal = 0;
25+
protected int $suiteTestTotal = 0;
2626
/** @var int $testTotal */
27-
protected $testTotal = null;
27+
protected int $testTotal = 0;
2828

2929
/**
3030
* @param TestResult $result

0 commit comments

Comments
 (0)