Merge pull request #1237 from owncloud/fix-template-tests

Remove unnecessary ob_end_clean() from template tests
This commit is contained in:
icewind1991 2013-01-22 11:12:40 -08:00
commit 12e286b21c
1 changed files with 0 additions and 4 deletions

View File

@ -30,7 +30,6 @@ class Test_TemplateFunctions extends UnitTestCase {
ob_start();
p($htmlString);
$result = ob_get_clean();
ob_end_clean();
$this->assertEqual("<script>alert('xss');</script>", $result);
}
@ -40,7 +39,6 @@ class Test_TemplateFunctions extends UnitTestCase {
ob_start();
p($normalString);
$result = ob_get_clean();
ob_end_clean();
$this->assertEqual("This is a good string!", $result);
}
@ -52,7 +50,6 @@ class Test_TemplateFunctions extends UnitTestCase {
ob_start();
print_unescaped($htmlString);
$result = ob_get_clean();
ob_end_clean();
$this->assertEqual($htmlString, $result);
}
@ -62,7 +59,6 @@ class Test_TemplateFunctions extends UnitTestCase {
ob_start();
print_unescaped($normalString);
$result = ob_get_clean();
ob_end_clean();
$this->assertEqual("This is a good string!", $result);
}