This repository was archived by the owner on May 26, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +32
-7
lines changed Expand file tree Collapse file tree 2 files changed +32
-7
lines changed Original file line number Diff line number Diff line change 1
1
<?php
2
2
/**
3
- * Copyright (c) 2014-2018 Ryan Parman <http://ryanparman.com>
3
+ * Copyright (c) 2014-2020 Ryan Parman <http://ryanparman.com>
4
4
*/
5
5
namespace Skyzyx \ResultPrinter ;
6
6
7
- use PHPUnit \Extensions \PhptTestCase ;
8
7
use PHPUnit \Framework \Test ;
9
8
use PHPUnit \Framework \TestCase ;
10
9
use PHPUnit \Framework \TestSuite ;
11
- use PHPUnit \TextUI \ResultPrinter as PPrinter ;
10
+ use PHPUnit \Runner \PhptTestCase ;
11
+ use PHPUnit \TextUI \DefaultResultPrinter as PPrinter ;
12
12
use PHPUnit \Util \Test as TestUtil ;
13
13
14
+ /**
15
+ * Class ResultPrinter
16
+ * @package Skyzyx\ResultPrinter
17
+ */
14
18
class ResultPrinter extends PPrinter
15
19
{
16
20
/** @var string */
@@ -34,10 +38,31 @@ class ResultPrinter extends PPrinter
34
38
/** @var string */
35
39
protected $ passEmoji = "\xE2\x9c\x93" ; // Checkmark
36
40
41
+ /** @var int */
42
+ protected $ numTestsRun ;
43
+
44
+ /** @var int */
45
+ protected $ numTests ;
46
+
47
+ /** @var int */
48
+ protected $ column ;
49
+
50
+ /** @var int */
51
+ protected $ numTestsWidth ;
52
+
53
+ /** @var int */
54
+ protected $ maxColumn ;
55
+
56
+ /** @var bool */
57
+ protected $ lastTestFailed ;
58
+
59
+ /** @var int */
60
+ protected $ numAssertions ;
61
+
37
62
/**
38
- * {@inheritdoc}
63
+ * @param string $progress
39
64
*/
40
- protected function writeProgress ($ progress ): void
65
+ protected function writeProgress (string $ progress ): void
41
66
{
42
67
switch ($ progress ) {
43
68
case 'E ' :
Original file line number Diff line number Diff line change 3
3
"description" : " A custom printer for PHPUnit." ,
4
4
"type" : " library" ,
5
5
"require" : {
6
- "php" : " >=7.1 " ,
7
- "phpunit/phpunit" : " ^7 .0"
6
+ "php" : " >=7.2 " ,
7
+ "phpunit/phpunit" : " ^9 .0"
8
8
},
9
9
"license" : " MIT" ,
10
10
"authors" : [
You can’t perform that action at this time.
0 commit comments