Skip to content
Snippets Groups Projects
Commit 12e286b2 authored by Robin Appelman's avatar Robin Appelman
Browse files

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

Remove unnecessary ob_end_clean() from template tests
parents c18aec56 68272fa2
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment