diff options
author | Andreas Gohr <andi@splitbrain.org> | 2012-05-01 12:38:41 -0700 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2012-05-01 12:38:41 -0700 |
commit | 3c0d44f1aa44d3ac3d8b9e652d172b1eda680bbf (patch) | |
tree | 5a9a42fb720a774c2bb8c393d3046d7beb11bf8f /_test/cases/inc/common_cleanText.test.php | |
parent | e67fdd7b79e8f05b9e7e9164691114222e3c377c (diff) | |
parent | 1831d8a0f848f2e0dd5ef195791b6beaa5d1acb7 (diff) | |
download | rpg-3c0d44f1aa44d3ac3d8b9e652d172b1eda680bbf.tar.gz rpg-3c0d44f1aa44d3ac3d8b9e652d172b1eda680bbf.tar.bz2 |
Merge pull request #96 from dom-mel/phpunit
Replace SimpleTest with PHPUnit
Diffstat (limited to '_test/cases/inc/common_cleanText.test.php')
-rw-r--r-- | _test/cases/inc/common_cleanText.test.php | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/_test/cases/inc/common_cleanText.test.php b/_test/cases/inc/common_cleanText.test.php deleted file mode 100644 index 936ed1d76..000000000 --- a/_test/cases/inc/common_cleanText.test.php +++ /dev/null @@ -1,34 +0,0 @@ -<?php - -require_once DOKU_INC.'inc/init.php'; -require_once DOKU_INC.'inc/common.php'; - -class common_clientIP_test extends UnitTestCase { - - function test_unix(){ - $unix = 'one - two - - three'; - - $this->assertEqual($unix,cleanText($unix)); - } - - function test_win(){ - $unix = 'one - two - - three'; - $win = 'one
- two
-
- three'; - - $this->assertEqual(bin2hex($unix),'6f6e650a2020202020202020202020202020202074776f0a0a202020202020202020202020202020207468726565'); - $this->assertEqual(bin2hex($win),'6f6e650d0a2020202020202020202020202020202074776f0d0a0d0a202020202020202020202020202020207468726565'); - $this->assertNotEqual($unix,$win); - $this->assertEqual($unix,cleanText($win)); - } -} - -//Setup VIM: ex: et ts=4 : |