summaryrefslogtreecommitdiff
path: root/_testing/unittests/inc/common_cleanText.test.php
diff options
context:
space:
mode:
authorTobias Sarnowski <tobias@trustedco.de>2012-04-16 17:36:10 +0000
committerTobias Sarnowski <tobias@trustedco.de>2012-04-16 17:36:10 +0000
commitae4cb5963676bdd9415f1b6652942ed462026fc5 (patch)
tree8762ec07c78dae50d3dfc183d15a438166a11855 /_testing/unittests/inc/common_cleanText.test.php
parent1101eda89fdb3b8cc5f5fe0dc2c2ac4c1705508e (diff)
downloadrpg-ae4cb5963676bdd9415f1b6652942ed462026fc5.tar.gz
rpg-ae4cb5963676bdd9415f1b6652942ed462026fc5.tar.bz2
unified unit and integration tests
Diffstat (limited to '_testing/unittests/inc/common_cleanText.test.php')
-rw-r--r--_testing/unittests/inc/common_cleanText.test.php28
1 files changed, 0 insertions, 28 deletions
diff --git a/_testing/unittests/inc/common_cleanText.test.php b/_testing/unittests/inc/common_cleanText.test.php
deleted file mode 100644
index 68e70e2ea..000000000
--- a/_testing/unittests/inc/common_cleanText.test.php
+++ /dev/null
@@ -1,28 +0,0 @@
-<?php
-
-require_once DOKU_INC . 'inc/init.php';
-require_once DOKU_INC . 'inc/common.php';
-
-class common_cleanText_test extends PHPUnit_Framework_TestCase {
-
- function test_unix(){
- $unix = 'one
- two
-
- three';
-
- $this->assertEquals($unix,cleanText($unix));
- }
-
- function test_win(){
- $unix = "one\ntwo\nthree";
- $win = "one\r\ntwo\r\nthree";
-
- $this->assertEquals(bin2hex($unix), '6f6e650a74776f0a7468726565');
- $this->assertEquals(bin2hex($win), '6f6e650d0a74776f0d0a7468726565');
- $this->assertNotEquals($unix, $win);
- $this->assertEquals($unix, cleanText($win));
- }
-}
-
-//Setup VIM: ex: et ts=4 :