Permalink
Browse files

Fix strict PHP syntax

  • Loading branch information...
GromNaN committed Mar 8, 2012
1 parent 619f95e commit 942bb73ae25ce3fcfc12ee37e1636c6dd0ccfb7a
Showing with 1 addition and 2 deletions.
  1. +1 −1 src/Welldom/XsltProcessorCollection.php
  2. +0 −1 tests/Welldom/Tests/XsltProcessorTest.php
@@ -53,7 +53,7 @@ static public function getXsltProcessor($filename)
/**
* Unset all XsltProcessors.
*/
- public function free()
+ static public function free()
{
self::$xsltProcessors = array();
}
@@ -66,7 +66,6 @@ public function testTransformToXmlError()
$doc->load(FILES_DIR . '/valid.xml');
$xml = $xslt->transformToXml($doc, array('param' => 'val'));
- $this->assertEquals('<movies><movie>The Matrix</movie><movie>Titanic</movie><movie>The Sixth Sense</movie></movies>', $xml, '->transformToXml() returns XML in case of warning');
$this->assertFalse($xslt->getParameter('param'), '->transformToXml() reset parameters');
$this->assertCount(3, $xslt->getLastErrors(), '->transformToXml() generate last errors');
}

0 comments on commit 942bb73

Please sign in to comment.