Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 10 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
129 | 55 | public static function suiteFromNode(\SimpleXMLElement $node): self |
|
130 | { |
||
131 | 55 | return new self( |
|
132 | 55 | (string) $node['name'], |
|
133 | 55 | (int) $node['tests'], |
|
134 | 55 | (int) $node['assertions'], |
|
135 | 55 | (int) $node['failures'], |
|
136 | 55 | (int) $node['errors'], |
|
137 | 55 | (int) $node['skipped'], |
|
138 | 55 | (float) $node['time'], |
|
139 | 55 | (string) $node['file'] |
|
140 | ); |
||
141 | } |
||
142 | } |
||
143 |