src/Logging/JUnit/Reader.php
protected function getCaseNodes(): array
    {
        $caseNodes = $this->xml->xpath('//testcase');
        $cases = [];
        foreach ($caseNodes as $node) {
            $case = $node;
            if (!isset($cases[(string) $node['file']])) {
                $cases[(string) $node['file']] = [];
            }
            $cases[(string) $node['file']][] = $node;
        }

        return $cases;
    }
protected function getCaseNodes(): array
    {
        $caseNodes = $this->xml->xpath('//testcase');
        $cases = [];
        foreach ($caseNodes as $node) {
            $case = $node;
            if (!isset($cases[(string) $node['file']])) {
                $cases[(string) $node['file']] = [];
            }
            $cases[(string) $node['file']][] = $node;
        }

        return $cases;
    }
protected function getCaseNodes ( ) : array { $ caseNodes = $ this -> xml -> xpath ( '//testcase' ) ; $ cases = [ ] ; foreach ( $ caseNodes as $ node ) { $ case = $ node ; if ( ! isset ( $ cases [ ( string ) $ node [ 'file' ] ] ) ) { $ cases [ ( string ) $ node [ 'file' ] ] = [ ] ; } $ cases [ ( string ) $ node [ 'file' ] ] [ ] = $ node ; } return $ cases ; }
Return a collection of testcase nodes
from the xml document.

@return array
Return a collection of testcase nodes from the xml document .