src/MergeReports.php
private function updateToolbarTable($dstFile){
        $dstFile = new \DOMXPath($dstFile);
        $pathFor = function ($type) {return "//ul[@id='toolbar-filter']//a[@title='$type']";};
        $dstFile->query($pathFor('Successful'))->item(0)->nodeValue = '✔ '.$this->countSuccess;
        $dstFile->query($pathFor('Failed'))->item(0)->nodeValue = '✗ '.$this->countFailed;
        $dstFile->query($pathFor('Skipped'))->item(0)->nodeValue = 'S '.$this->countSkipped;
        $dstFile->query($pathFor('Incomplete'))->item(0)->nodeValue= 'I '.$this->countIncomplete;
    }
private function updateToolbarTable($dstFile){
        $dstFile = new \DOMXPath($dstFile);
        $pathFor = function ($type) {return "//ul[@id='toolbar-filter']//a[@title='$type']";};
        $dstFile->query($pathFor('Successful'))->item(0)->nodeValue = '✔ '.$this->countSuccess;
        $dstFile->query($pathFor('Failed'))->item(0)->nodeValue = '✗ '.$this->countFailed;
        $dstFile->query($pathFor('Skipped'))->item(0)->nodeValue = 'S '.$this->countSkipped;
        $dstFile->query($pathFor('Incomplete'))->item(0)->nodeValue= 'I '.$this->countIncomplete;
    }
This function updates values in Toolbar block for each type of scenarios (blue block on the left side of the report)
@param $dstFile \DOMDocument - destination file