From 6212730ca98f1a8c054d742fa68f988e77be4caf Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Tue, 13 Mar 2012 19:08:15 +0100 Subject: 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. --- _test/cases/inc/common_cleanText.test.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to '_test') 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)); } -- cgit v1.2.3