From ae4cb5963676bdd9415f1b6652942ed462026fc5 Mon Sep 17 00:00:00 2001 From: Tobias Sarnowski Date: Mon, 16 Apr 2012 17:36:10 +0000 Subject: unified unit and integration tests --- _testing/unittests/inc/utf8_html.test.php | 72 ------------------------------- 1 file changed, 72 deletions(-) delete mode 100644 _testing/unittests/inc/utf8_html.test.php (limited to '_testing/unittests/inc/utf8_html.test.php') diff --git a/_testing/unittests/inc/utf8_html.test.php b/_testing/unittests/inc/utf8_html.test.php deleted file mode 100644 index 9f40514fc..000000000 --- a/_testing/unittests/inc/utf8_html.test.php +++ /dev/null @@ -1,72 +0,0 @@ -assertEquals(utf8_tohtml($in),$out); - } - - function test_from_2byte(){ - $in = "\xc3\xbc"; - $out = 'ü'; - $this->assertEquals(utf8_tohtml($in),$out); - } - - function test_from_3byte(){ - $in = "\xe2\x99\x8a"; - $out = '♊'; - $this->assertEquals(utf8_tohtml($in),$out); - } - - function test_from_4byte(){ - $in = "\xf4\x80\x80\x81"; - $out = '􀀁'; - $this->assertEquals(utf8_tohtml($in),$out); - } - - function test_to_1byte(){ - $out = 'a'; - $in = 'a'; - $this->assertEquals(utf8_unhtml($in),$out); - } - - function test_to_2byte(){ - $out = "\xc3\xbc"; - $in = 'ü'; - $this->assertEquals(utf8_unhtml($in),$out); - } - - function test_to_3byte(){ - $out = "\xe2\x99\x8a"; - $in = '♊'; - $this->assertEquals(utf8_unhtml($in),$out); - } - - function test_to_4byte(){ - $out = "\xf4\x80\x80\x81"; - $in = '􀀁'; - $this->assertEquals(utf8_unhtml($in),$out); - } - - function test_without_entities(){ - $out = '&&'; - $in = '&&'; - $this->assertEquals(utf8_unhtml($in),$out); - } - - function test_with_entities(){ - $out = '&&'; - $in = '&&'; - $this->assertEquals(utf8_unhtml($in,HTML_ENTITIES),$out); - } - -} - -//Setup VIM: ex: et ts=4 : -- cgit v1.2.3