diff options
author | Andreas Gohr <andi@splitbrain.org> | 2012-03-13 19:08:15 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2012-03-13 19:08:15 +0100 |
commit | 6212730ca98f1a8c054d742fa68f988e77be4caf (patch) | |
tree | cf7a0b5c59a6c7cb10c57bb0f5b9506525d50c08 | |
parent | 9e760ee516dd6e50390490f6d5585b854b895808 (diff) | |
download | rpg-6212730ca98f1a8c054d742fa68f988e77be4caf.tar.gz rpg-6212730ca98f1a8c054d742fa68f988e77be4caf.tar.bz2 |
the previous test case had an error
There were whitespaces on the empty DOS line. This fixes the test but
does not explain the broken behaviour in the wiki itself.
-rw-r--r-- | _test/cases/inc/common_cleanText.test.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/_test/cases/inc/common_cleanText.test.php b/_test/cases/inc/common_cleanText.test.php index 571e41fa5..936ed1d76 100644 --- a/_test/cases/inc/common_cleanText.test.php +++ b/_test/cases/inc/common_cleanText.test.php @@ -19,10 +19,13 @@ class common_clientIP_test extends UnitTestCase { two three'; - $win = 'one
+ $win = 'one
two
-
+
three'; + + $this->assertEqual(bin2hex($unix),'6f6e650a2020202020202020202020202020202074776f0a0a202020202020202020202020202020207468726565'); + $this->assertEqual(bin2hex($win),'6f6e650d0a2020202020202020202020202020202074776f0d0a0d0a202020202020202020202020202020207468726565'); $this->assertNotEqual($unix,$win); $this->assertEqual($unix,cleanText($win)); } |