src/Logging/JUnit/Writer.php
public function getXml(): string
    {
        $suites = $this->interpreter->flattenCases();
        $root = $this->getSuiteRoot($suites);
        foreach ($suites as $suite) {
            $snode = $this->appendSuite($root, $suite);
            foreach ($suite->cases as $case) {
                $cnode = $this->appendCase($snode, $case);
            }
        }

        return $this->document->saveXML();
    }
public function getXml(): string
    {
        $suites = $this->interpreter->flattenCases();
        $root = $this->getSuiteRoot($suites);
        foreach ($suites as $suite) {
            $snode = $this->appendSuite($root, $suite);
            foreach ($suite->cases as $case) {
                $cnode = $this->appendCase($snode, $case);
            }
        }

        return $this->document->saveXML();
    }
public function getXml ( ) : string { $ suites = $ this -> interpreter -> flattenCases ( ) ; $ root = $ this -> getSuiteRoot ( $ suites ) ; foreach ( $ suites as $ suite ) { $ snode = $ this -> appendSuite ( $ root , $ suite ) ; foreach ( $ suite -> cases as $ case ) { $ cnode = $ this -> appendCase ( $ snode , $ case ) ; } } return $ this -> document -> saveXML ( ) ; }
Returns the xml structure the writer
will use.

@return string
Returns the xml structure the writer will use .