ParaTest\Logging\JUnit\ReaderTest::extractLog PHP Method

extractLog() public static method

Extraction of log from xml file to use in test of validation "SystemOut" result
public static extractLog ( ) : stdClass
return stdClass $log
    public static function extractLog()
    {
        $log = new \stdClass();
        $result = FIXTURES . DS . 'results' . DS . 'mixed-results-with-system-out.xml';
        $node = new Reader($result);
        $log->failure = $node->getSuites()[0]->suites[0]->cases[1]->failures[0]['text'];
        $log->error = $node->getSuites()[0]->suites[1]->cases[0]->errors[0]['text'];
        return $log;
    }