lib/Storage/Driver/Xml/HistoryIterator.php
private function getHistoryEntry($path)
    {
        $dom = new Document();
        $dom->load($path);
        $collection = $this->xmlDecoder->decode($dom);
        $suites = $collection->getSuites();
        $suite = reset($suites);
        $envInformations = $suite->getEnvInformations();

        $vcsBranch = null;

        if (isset($envInformations['vcs']['branch'])) {
            $vcsBranch = $envInformations['vcs']['branch'];
        }

        $summary = $suite->getSummary();
        $entry = new HistoryEntry(
            $suite->getUuid(),
            $suite->getDate(),
            $suite->getTag(),
            $vcsBranch,
            $summary->getNbSubjects(),
            $summary->getNbIterations(),
            $summary->getNbRevolutions(),
            $summary->getMinTime(),
            $summary->getMaxTime(),
            $summary->getMeanTime(),
            $summary->getMeanRelStDev(),
            $summary->getTotalTime()
        );

        return $entry;
    }
private function getHistoryEntry($path)
    {
        $dom = new Document();
        $dom->load($path);
        $collection = $this->xmlDecoder->decode($dom);
        $suites = $collection->getSuites();
        $suite = reset($suites);
        $envInformations = $suite->getEnvInformations();

        $vcsBranch = null;

        if (isset($envInformations['vcs']['branch'])) {
            $vcsBranch = $envInformations['vcs']['branch'];
        }

        $summary = $suite->getSummary();
        $entry = new HistoryEntry(
            $suite->getUuid(),
            $suite->getDate(),
            $suite->getTag(),
            $vcsBranch,
            $summary->getNbSubjects(),
            $summary->getNbIterations(),
            $summary->getNbRevolutions(),
            $summary->getMinTime(),
            $summary->getMaxTime(),
            $summary->getMeanTime(),
            $summary->getMeanRelStDev(),
            $summary->getTotalTime()
        );

        return $entry;
    }
private function getHistoryEntry ( $ path ) { $ dom = new Document ( ) ; $ dom -> load ( $ path ) ; $ collection = $ this -> xmlDecoder -> decode ( $ dom ) ; $ suites = $ collection -> getSuites ( ) ; $ suite = reset ( $ suites ) ; $ envInformations = $ suite -> getEnvInformations ( ) ; $ vcsBranch = null ; if ( isset ( $ envInformations [ 'vcs' ] [ 'branch' ] ) ) { $ vcsBranch = $ envInformations [ 'vcs' ] [ 'branch' ] ; } $ summary = $ suite -> getSummary ( ) ; $ entry = new HistoryEntry ( $ suite -> getUuid ( ) , $ suite -> getDate ( ) , $ suite -> getTag ( ) , $ vcsBranch , $ summary -> getNbSubjects ( ) , $ summary -> getNbIterations ( ) , $ summary -> getNbRevolutions ( ) , $ summary -> getMinTime ( ) , $ summary -> getMaxTime ( ) , $ summary -> getMeanTime ( ) , $ summary -> getMeanRelStDev ( ) , $ summary -> getTotalTime ( ) ) ; return $ entry ; }
Hydrate and return the history entry for the given path.

The summary *should* used pre-calculated values from the XML
therefore reducing the normal overhead, however this code
is still quite expensive as we are creating the entire object
graph for each suite run.

@param string $path

@return HistoryEntry
Hydrate and return the history entry for the given path .