100% of 279OPs |
100% of 44Lines |
0% of 1Branches |
100% of 1Paths |
Method | OPs | OPs % | Lines | Line % | Branches | Branches % | Paths | Path % |
---|---|---|---|---|---|---|---|---|
mageekguy\atoum\reports\asynchronous\builder::__construct() | 279 | 100% | 44 | 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\exceptions, |
10 |
mageekguy\atoum\report\fields\test, |
11 |
mageekguy\atoum\report\fields\runner |
12 |
; |
13 |
|
14 |
class builder extends atoum\reports\asynchronous |
15 |
{ |
16 |
public function __construct()100% |
17 |
{ |
18 |
parent::__construct(); |
19 |
|
20 |
$secondLevelPrompt = new prompt(' '); |
21 |
$thirdLevelPrompt = new prompt(' '); |
22 |
|
23 |
$this->addField(new runner\php\path\cli()); |
24 |
|
25 |
$phpVersionField = new runner\php\version\cli(); |
26 |
$phpVersionField->setVersionPrompt($secondLevelPrompt); |
27 |
|
28 |
$this->addField($phpVersionField); |
29 |
|
30 |
$this |
31 |
->addField(new runner\duration\cli()) |
32 |
->addField(new runner\result\cli()) |
33 |
; |
34 |
|
35 |
$failuresField = new runner\failures\cli(); |
36 |
$failuresField->setMethodPrompt($secondLevelPrompt); |
37 |
|
38 |
$this->addField($failuresField); |
39 |
|
40 |
$outputsField = new runner\outputs\cli(); |
41 |
$outputsField->setMethodPrompt($secondLevelPrompt); |
42 |
|
43 |
$this->addField($outputsField); |
44 |
|
45 |
$errorsField = new runner\errors\cli(); |
46 |
$errorsField |
47 |
->setMethodPrompt($secondLevelPrompt) |
48 |
->setErrorPrompt($thirdLevelPrompt) |
49 |
; |
50 |
|
51 |
$this->addField($errorsField); |
52 |
|
53 |
$exceptionsField = new runner\exceptions\cli(); |
54 |
$exceptionsField |
55 |
->setMethodPrompt($secondLevelPrompt) |
56 |
->setExceptionPrompt($thirdLevelPrompt) |
57 |
; |
58 |
|
59 |
$this->addField($exceptionsField); |
60 |
|
61 |
$uncompletedField = new runner\tests\uncompleted\cli(); |
62 |
$uncompletedField |
63 |
->setMethodPrompt($secondLevelPrompt) |
64 |
->setOutputPrompt($thirdLevelPrompt) |
65 |
; |
66 |
|
67 |
$this->addField($uncompletedField); |
68 |
|
69 |
$this |
70 |
->addField(new runner\tests\duration\cli()) |
71 |
->addField(new runner\tests\memory\cli()) |
72 |
; |
73 |
|
74 |
$coverageField = new runner\tests\coverage\cli(); |
75 |
$coverageField |
76 |
->setClassPrompt($secondLevelPrompt) |
77 |
->setMethodPrompt($thirdLevelPrompt) |
78 |
; |
79 |
|
80 |
$this |
81 |
->addField($coverageField) |
82 |
->addField(new test\run\cli()) |
83 |
; |
84 |
|
85 |
$durationField = new test\duration\cli(); |
86 |
$durationField->setPrompt($secondLevelPrompt); |
87 |
|
88 |
$this->addField($durationField); |
89 |
|
90 |
$memoryField = new test\memory\cli(); |
91 |
$memoryField->setPrompt($secondLevelPrompt); |
92 |
|
93 |
$this->addField($memoryField); |
94 |
} |
95 |
} |