summaryrefslogtreecommitdiffstats
path: root/tests/lib/template.php
diff options
context:
space:
mode:
authorThomas Mueller <thomas.mueller@tmit.eu>2013-01-24 16:47:17 +0100
committerThomas Mueller <thomas.mueller@tmit.eu>2013-01-24 16:47:17 +0100
commitef88ceba8c1108aad6a4f437206f205c60fda870 (patch)
tree707b73619edbb7b6a734358054e4d878f0fe2137 /tests/lib/template.php
parent1dac2ba496a0054e9d5383a6babe7401dd2a260c (diff)
downloadnextcloud-server-ef88ceba8c1108aad6a4f437206f205c60fda870.tar.gz
nextcloud-server-ef88ceba8c1108aad6a4f437206f205c60fda870.zip
drop SimpleTest compatibility
Diffstat (limited to 'tests/lib/template.php')
-rw-r--r--tests/lib/template.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/lib/template.php b/tests/lib/template.php
index 2899c3512b2..6e88d4c07fc 100644
--- a/tests/lib/template.php
+++ b/tests/lib/template.php
@@ -22,7 +22,7 @@
OC::autoload('OC_Template');
-class Test_TemplateFunctions extends UnitTestCase {
+class Test_TemplateFunctions extends PHPUnit_Framework_TestCase {
public function testP() {
// FIXME: do we need more testcases?
@@ -31,7 +31,7 @@ class Test_TemplateFunctions extends UnitTestCase {
p($htmlString);
$result = ob_get_clean();
- $this->assertEqual("&lt;script&gt;alert(&#039;xss&#039;);&lt;/script&gt;", $result);
+ $this->assertEquals("&lt;script&gt;alert(&#039;xss&#039;);&lt;/script&gt;", $result);
}
public function testPNormalString() {
@@ -40,7 +40,7 @@ class Test_TemplateFunctions extends UnitTestCase {
p($normalString);
$result = ob_get_clean();
- $this->assertEqual("This is a good string!", $result);
+ $this->assertEquals("This is a good string!", $result);
}
@@ -51,7 +51,7 @@ class Test_TemplateFunctions extends UnitTestCase {
print_unescaped($htmlString);
$result = ob_get_clean();
- $this->assertEqual($htmlString, $result);
+ $this->assertEquals($htmlString, $result);
}
public function testPrintUnescapedNormalString() {
@@ -60,7 +60,7 @@ class Test_TemplateFunctions extends UnitTestCase {
print_unescaped($normalString);
$result = ob_get_clean();
- $this->assertEqual("This is a good string!", $result);
+ $this->assertEquals("This is a good string!", $result);
}