Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
3 / 3 |
| AbstractXpathReducerProvider | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
3 / 3 |
| fetchData | |
100.00% |
1 / 1 |
1 | |
100.00% |
3 / 3 |
|||
| <?php | |
| namespace Alxvng\QATracker\DataProvider; | |
| use SimpleXMLElement; | |
| abstract class AbstractXpathReducerProvider extends AbstractXpathProvider implements ReducerProviderInterface | |
| { | |
| public function fetchData(): float | |
| { | |
| $xml = new SimpleXMLElement(file_get_contents($this->inputFilePath)); | |
| $nodes = $xml->xpath($this->xpathQuery); | |
| return $this->reduceMethod($nodes); | |
| } | |
| } |