Skip to content
Snippets Groups Projects
Commit f5913821 authored by Bernhard Posselt's avatar Bernhard Posselt
Browse files

assert in proper order

parent a31c230f
No related branches found
No related tags found
No related merge requests found
...@@ -31,7 +31,7 @@ class Test_TemplateFunctions extends UnitTestCase { ...@@ -31,7 +31,7 @@ class Test_TemplateFunctions extends UnitTestCase {
p($htmlString); p($htmlString);
$result = ob_get_clean(); $result = ob_get_clean();
$this->assertEqual($result, "<script>alert('xss');</script>"); $this->assertEqual("<script>alert('xss');</script>", $result);
ob_end_clean(); ob_end_clean();
$normalString = "This is a good string!"; $normalString = "This is a good string!";
...@@ -39,7 +39,7 @@ class Test_TemplateFunctions extends UnitTestCase { ...@@ -39,7 +39,7 @@ class Test_TemplateFunctions extends UnitTestCase {
p($normalString); p($normalString);
$result = ob_get_clean(); $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 { ...@@ -51,7 +51,7 @@ class Test_TemplateFunctions extends UnitTestCase {
print_unescaped($htmlString); print_unescaped($htmlString);
$result = ob_get_clean(); $result = ob_get_clean();
$this->assertEqual($result, $htmlString); $this->assertEqual($htmlString, $result);
ob_end_clean(); ob_end_clean();
$normalString = "This is a good string!"; $normalString = "This is a good string!";
...@@ -59,7 +59,7 @@ class Test_TemplateFunctions extends UnitTestCase { ...@@ -59,7 +59,7 @@ class Test_TemplateFunctions extends UnitTestCase {
p($normalString); p($normalString);
$result = ob_get_clean(); $result = ob_get_clean();
$this->assertEqual($result, "This is a good string!"); $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