summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2013-01-19 20:28:45 -0500
committerMichael Gapczynski <mtgap@owncloud.com>2013-01-19 20:28:45 -0500
commit68272fa25324b9884f1c830d15b34d67a450c17e (patch)
tree4f7f937aecd1af1ccc1c62a3a2e3458e0bc23d83
parentebc0c4b85bc382efcf64ad0b2613d70a193b18f2 (diff)
downloadnextcloud-server-68272fa25324b9884f1c830d15b34d67a450c17e.tar.gz
nextcloud-server-68272fa25324b9884f1c830d15b34d67a450c17e.zip
Remove unnecessary ob_end_clean() from template tests
-rw-r--r--tests/lib/template.php4
1 files changed, 0 insertions, 4 deletions
diff --git a/tests/lib/template.php b/tests/lib/template.php
index 736bc95255c..2899c3512b2 100644
--- a/tests/lib/template.php
+++ b/tests/lib/template.php
@@ -30,7 +30,6 @@ class Test_TemplateFunctions extends UnitTestCase {
ob_start();
p($htmlString);
$result = ob_get_clean();
- ob_end_clean();
$this->assertEqual("&lt;script&gt;alert(&#039;xss&#039;);&lt;/script&gt;", $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);
}