src/Logging/JUnit/Reader.php
protected function initSuite()
    {
        $suiteNodes = $this->xml->xpath('/testsuites/testsuite/testsuite');
        $this->isSingle = \count($suiteNodes) === 0;
        $node = current($this->xml->xpath('/testsuites/testsuite'));

        if ($node !== false) {
            $this->suites[] = TestSuite::suiteFromNode($node);
        } else {
            $this->suites[] = TestSuite::suiteFromArray(self::$defaultSuite);
        }
    }
protected function initSuite()
    {
        $suiteNodes = $this->xml->xpath('/testsuites/testsuite/testsuite');
        $this->isSingle = \count($suiteNodes) === 0;
        $node = current($this->xml->xpath('/testsuites/testsuite'));

        if ($node !== false) {
            $this->suites[] = TestSuite::suiteFromNode($node);
        } else {
            $this->suites[] = TestSuite::suiteFromArray(self::$defaultSuite);
        }
    }
protected function initSuite ( ) { $ suiteNodes = $ this -> xml -> xpath ( '/testsuites/testsuite/testsuite' ) ; $ this -> isSingle = \ count ( $ suiteNodes ) === 0 ; $ node = current ( $ this -> xml -> xpath ( '/testsuites/testsuite' ) ) ; if ( $ node !== false ) { $ this -> suites [ ] = TestSuite :: suiteFromNode ( $ node ) ; } else { $ this -> suites [ ] = TestSuite :: suiteFromArray ( self :: $ defaultSuite ) ; } }
Determine if this reader is a single suite
and initialize the suite collection with the first
suite.
Determine if this reader is a single suite and initialize the suite collection with the first suite .