diff --git a/tests/UnitTests/TemplateSource/TagTests/Strip/CompileStripTest.php b/tests/UnitTests/TemplateSource/TagTests/Strip/CompileStripTest.php index a34fca5a..c32490cc 100644 --- a/tests/UnitTests/TemplateSource/TagTests/Strip/CompileStripTest.php +++ b/tests/UnitTests/TemplateSource/TagTests/Strip/CompileStripTest.php @@ -10,7 +10,7 @@ * class for strip tags tests * * @runTestsInSeparateProcess - * @preserveGlobalState disabled + * @preserveGlobalState disabled * @backupStaticAttributes enabled */ class CompileStripTest extends PHPUnit_Smarty @@ -22,7 +22,6 @@ class CompileStripTest extends PHPUnit_Smarty $this->smarty->addTemplateDir("./templates_tmp"); } - public function testInit() { $this->cleanDirs(); @@ -31,7 +30,7 @@ class CompileStripTest extends PHPUnit_Smarty /** * Test {strip} tags * - * @not runInSeparateProcess + * @not runInSeparateProcess * @preserveGlobalState disabled * @dataProvider dataTestStrip */ @@ -40,7 +39,7 @@ class CompileStripTest extends PHPUnit_Smarty $file = "testStrip_{$testNumber}.tpl"; $this->makeTemplateFile($file, "{strip}\n" . $code); $this->smarty->assignGlobal('file', $file); - $this->assertEquals($this->strip($result), $this->strip($this->smarty->fetch($file)), "testStrip - {$code} - {$testName}"); + $this->assertEquals($result, $this->smarty->fetch($file), "testStrip - {$code} - {$testName}"); } /* @@ -54,16 +53,29 @@ class CompileStripTest extends PHPUnit_Smarty * result * test name */ - return array( - array(" foo\n bar buh\n\n", 'foobar buh', '', $i ++), - array("\n