protected function getSuiteRoot($suites)
{
$testsuites = $this->document->createElement("testsuites");
$this->document->appendChild($testsuites);
if (sizeof($suites) == 1) {
return $testsuites;
}
$rootSuite = $this->document->createElement('testsuite');
$attrs = $this->getSuiteRootAttributes($suites);
foreach ($attrs as $attr => $value) {
$rootSuite->setAttribute($attr, $value);
}
$testsuites->appendChild($rootSuite);
return $rootSuite;
}