summaryrefslogtreecommitdiffstats
path: root/tests/lib/template.php
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2012-10-29 21:33:43 +0100
committerBernhard Posselt <nukeawhale@gmail.com>2012-10-29 21:33:43 +0100
commitf59138214735b6e0516b35d62a62a144f9b0a3e1 (patch)
tree511408c6a88511277dc2ba982b625ed7ef3efc59 /tests/lib/template.php
parenta31c230f229c9e28438c221a6e585e7b8bf1cda6 (diff)
downloadnextcloud-server-f59138214735b6e0516b35d62a62a144f9b0a3e1.tar.gz
nextcloud-server-f59138214735b6e0516b35d62a62a144f9b0a3e1.zip
assert in proper order
Diffstat (limited to 'tests/lib/template.php')
-rw-r--r--tests/lib/template.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/lib/template.php b/tests/lib/template.php
index 27feec13d04..0151ab331d1 100644
--- a/tests/lib/template.php
+++ b/tests/lib/template.php
@@ -31,7 +31,7 @@ class Test_TemplateFunctions extends UnitTestCase {
p($htmlString);
$result = ob_get_clean();
- $this->assertEqual($result, "&lt;script&gt;alert(&#039;xss&#039;);&lt;/script&gt;");
+ $this->assertEqual("&lt;script&gt;alert(&#039;xss&#039;);&lt;/script&gt;", $result);
ob_end_clean();
$normalString = "This is a good string!";
@@ -39,7 +39,7 @@ class Test_TemplateFunctions extends UnitTestCase {
p($normalString);
$result = ob_get_clean();
- $this->assertEqual($result, "This is a good string!");
+ $this->assertEqual("This is a good string!", $result);
}
@@ -51,7 +51,7 @@ class Test_TemplateFunctions extends UnitTestCase {
print_unescaped($htmlString);
$result = ob_get_clean();
- $this->assertEqual($result, $htmlString);
+ $this->assertEqual($htmlString, $result);
ob_end_clean();
$normalString = "This is a good string!";
@@ -59,7 +59,7 @@ class Test_TemplateFunctions extends UnitTestCase {
p($normalString);
$result = ob_get_clean();
- $this->assertEqual($result, "This is a good string!");
+ $this->assertEqual("This is a good string!", $result);
}