ParaTest\Logging\JUnit\Writer::appendSuite PHP Method

appendSuite() protected method

Append a testsuite node to the given root element
protected appendSuite ( $root, ParaTest\Logging\JUnit\TestSuite $suite ) : DOMElement
$root
$suite ParaTest\Logging\JUnit\TestSuite
return DOMElement
    protected function appendSuite($root, TestSuite $suite)
    {
        $suiteNode = $this->document->createElement("testsuite");
        $vars = get_object_vars($suite);
        foreach ($vars as $name => $value) {
            if (preg_match(static::$suiteAttrs, $name)) {
                $suiteNode->setAttribute($name, $value);
            }
        }
        $root->appendChild($suiteNode);
        return $suiteNode;
    }