Skip to content

Commit

Permalink
Fix case, add annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
mrook committed Nov 2, 2016
1 parent 88f7bd7 commit 4868889
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions classes/phing/tasks/ext/phpunit/PHPUnitReportTask.php
Expand Up @@ -167,12 +167,12 @@ protected function transform(DOMDocument $document)
}
}

$proc->importStyleSheet($xsl);
$proc->importStylesheet($xsl);
$proc->setParameter('', 'output.sorttable', (string) $this->useSortTable);

if ($this->format == "noframes") {
$writer = new FileWriter(new PhingFile($this->toDir, "phpunit-noframes.html"));
$writer->write($proc->transformToXML($document));
$writer->write($proc->transformToXml($document));
$writer->close();
} else {
ExtendedFileStream::registerStream();
Expand All @@ -187,7 +187,7 @@ protected function transform(DOMDocument $document)
// no output for the framed report
// it's all done by extension...
$proc->setParameter('', 'output.dir', $toDir);
$proc->transformToXML($document);
$proc->transformToXml($document);

ExtendedFileStream::unregisterStream();
}
Expand All @@ -212,6 +212,7 @@ protected function fixDocument(DOMDocument $document)
$children = $xp->query("./testsuite", $node);

if ($children->length) {
/** @var $child DOMElement */
foreach ($children as $child) {
$rootElement->appendChild($child);

Expand Down

0 comments on commit 4868889

Please sign in to comment.