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

testResultWithSystemOut() public method

    public function testResultWithSystemOut()
    {
        $customLog = "\nCustom error log on result test with ";
        $result = FIXTURES . DS . 'results' . DS . 'mixed-results-with-system-out.xml';
        $failLog = self::extractLog()->failure . $customLog . "failure!";
        $errorLog = self::extractLog()->error . $customLog . "error!";
        $node = new Reader($result);
        $resultFail = $node->getSuites()[0]->suites[2]->cases[1]->failures[0]['text'];
        $resultError = $node->getSuites()[0]->suites[1]->cases[1]->errors[0]['text'];
        $this->assertEquals($failLog, $resultFail);
        $this->assertEquals($errorLog, $resultError);
    }