100% of 409OPs |
100% of 67Lines |
0% of 1Branches |
100% of 1Paths |
Method | OPs | OPs % | Lines | Line % | Branches | Branches % | Paths | Path % |
---|---|---|---|---|---|---|---|---|
mageekguy\atoum\reports\asynchronous\vim::__construct() | 409 | 100% | 67 | 100% | 1 | 0% | 1 | 100% |
# | |
---|---|
1 |
<?php |
2 |
|
3 |
namespace mageekguy\atoum\reports\asynchronous; |
4 |
|
5 |
use |
6 |
mageekguy\atoum, |
7 |
mageekguy\atoum\cli\prompt, |
8 |
mageekguy\atoum\cli\colorizer, |
9 |
mageekguy\atoum\reports, |
10 |
mageekguy\atoum\report\fields\test, |
11 |
mageekguy\atoum\report\fields\runner |
12 |
; |
13 |
|
14 |
class vim extends reports\asynchronous |
15 |
{ |
16 |
public function __construct()100% |
17 |
{ |
18 |
parent::__construct(); |
19 |
|
20 |
$firstLevelPrompt = new prompt('> '); |
21 |
$secondLevelPrompt = new prompt('=> '); |
22 |
$thirdLevelPrompt = new prompt('==> '); |
23 |
|
24 |
$phpPathField = new runner\php\path\cli(); |
25 |
$phpPathField->setPrompt($firstLevelPrompt); |
26 |
|
27 |
$this->addField($phpPathField); |
28 |
|
29 |
$phpVersionField = new runner\php\version\cli(); |
30 |
$phpVersionField |
31 |
->setTitlePrompt($firstLevelPrompt) |
32 |
->setVersionPrompt($secondLevelPrompt) |
33 |
; |
34 |
|
35 |
$this->addField($phpVersionField); |
36 |
|
37 |
$testsDurationField = new runner\tests\duration\cli(); |
38 |
$testsDurationField->setPrompt($firstLevelPrompt); |
39 |
|
40 |
$this->addField($testsDurationField); |
41 |
|
42 |
$memoryField = new runner\tests\memory\cli(); |
43 |
$memoryField->setPrompt($firstLevelPrompt); |
44 |
|
45 |
$this->addField($memoryField); |
46 |
|
47 |
$coverageField = new runner\tests\coverage\cli(); |
48 |
$coverageField |
49 |
->setTitlePrompt($firstLevelPrompt) |
50 |
->setClassPrompt($secondLevelPrompt) |
51 |
->setMethodPrompt($thirdLevelPrompt) |
52 |
; |
53 |
|
54 |
$runnerDurationField = new runner\duration\cli(); |
55 |
$runnerDurationField->setPrompt($firstLevelPrompt); |
56 |
|
57 |
$this->addField($runnerDurationField); |
58 |
|
59 |
$resultField = new runner\result\cli(); |
60 |
|
61 |
$this->addField($resultField); |
62 |
|
63 |
$failuresField = new runner\failures\cli(); |
64 |
$failuresField |
65 |
->setTitlePrompt($firstLevelPrompt) |
66 |
->setMethodPrompt($secondLevelPrompt) |
67 |
; |
68 |
|
69 |
$this->addfield($failuresField); |
70 |
|
71 |
$errorsField = new runner\errors\cli(); |
72 |
$errorsField |
73 |
->setTitlePrompt($firstLevelPrompt) |
74 |
->setMethodPrompt($secondLevelPrompt) |
75 |
->setErrorPrompt($thirdLevelPrompt) |
76 |
; |
77 |
|
78 |
$this->addField($errorsField); |
79 |
|
80 |
$exceptionsField = new runner\exceptions\cli(); |
81 |
$exceptionsField |
82 |
->setTitlePrompt($firstLevelPrompt) |
83 |
->setMethodPrompt($secondLevelPrompt) |
84 |
->setExceptionPrompt($thirdLevelPrompt) |
85 |
; |
86 |
|
87 |
$this->addField($exceptionsField); |
88 |
|
89 |
$uncompletedField = new runner\tests\uncompleted\cli(); |
90 |
$uncompletedField |
91 |
->setTitlePrompt($firstLevelPrompt) |
92 |
->setMethodPrompt($secondLevelPrompt) |
93 |
->setOutputPrompt($thirdLevelPrompt) |
94 |
; |
95 |
|
96 |
$this->addField($uncompletedField); |
97 |
|
98 |
$voidField = new runner\tests\void\cli(); |
99 |
$voidField |
100 |
->setTitlePrompt($firstLevelPrompt) |
101 |
->setMethodPrompt($secondLevelPrompt) |
102 |
; |
103 |
|
104 |
$this->addField($voidField); |
105 |
|
106 |
$skippedField = new runner\tests\skipped\cli(); |
107 |
$skippedField |
108 |
->setTitlePrompt($firstLevelPrompt) |
109 |
->setMethodPrompt($secondLevelPrompt) |
110 |
; |
111 |
|
112 |
$this->addField($skippedField); |
113 |
|
114 |
$outputField = new runner\outputs\cli(); |
115 |
$outputField |
116 |
->setTitlePrompt($firstLevelPrompt) |
117 |
->setMethodPrompt($secondLevelPrompt) |
118 |
; |
119 |
|
120 |
$this->addField($outputField); |
121 |
|
122 |
$testRunField = new test\run\cli(); |
123 |
$testRunField->setPrompt($firstLevelPrompt); |
124 |
|
125 |
$this->addField($testRunField); |
126 |
|
127 |
$testDurationField = new test\duration\cli(); |
128 |
$testDurationField->setPrompt($secondLevelPrompt); |
129 |
|
130 |
$this->addField($testDurationField); |
131 |
|
132 |
$testMemoryField = new test\memory\cli(); |
133 |
$testMemoryField->setPrompt($secondLevelPrompt); |
134 |
|
135 |
$this->addField($testMemoryField); |
136 |
} |
137 |
} |