summaryrefslogtreecommitdiffstats
path: root/tests/codeigniter/core/compat
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2015-01-12 12:37:13 +0100
committerAndrey Andreev <narf@devilix.net>2015-01-12 12:37:13 +0100
commitdbf3460bc7c94bf49db7dff3525906cae53a81ac (patch)
tree5e6e9afe734828564be4915b865f3d0b4145722e /tests/codeigniter/core/compat
parent5350f056698168061ffde1ba62e8db1715101446 (diff)
Fix quoted_printable_encode() test
A false positive is triggered when imap_8bit() exists, as it seems to have slightly different output.
Diffstat (limited to 'tests/codeigniter/core/compat')
-rw-r--r--tests/codeigniter/core/compat/standard_test.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/codeigniter/core/compat/standard_test.php b/tests/codeigniter/core/compat/standard_test.php
index a3a6d9552..4077a5c7c 100644
--- a/tests/codeigniter/core/compat/standard_test.php
+++ b/tests/codeigniter/core/compat/standard_test.php
@@ -449,7 +449,6 @@ class standard_test extends CI_TestCase {
return $this->markTestSkipped('quoted_printable_encode() is already available on PHP 5.3');
}
-
// These are actually imap_8bit() tests:
$this->assertEquals("String with CRLF at end=20\r\n", quoted_printable_encode("String with CRLF at end \r\n"));
// ext/imap/tests/imap_8bit_basic.phpt says for this line:
@@ -459,6 +458,11 @@ class standard_test extends CI_TestCase {
$this->assertEquals("String with tab at end =09", quoted_printable_encode("String with tab at end \t"));
$this->assertEquals("=00=01=02=03=04=FE=FF=0A=0D", quoted_printable_encode("\x00\x01\x02\x03\x04\xfe\xff\x0a\x0d"));
+ if (function_exists('imap_8bit'))
+ {
+ return $this->markTestIncomplete('imap_8bit() exists and is called as an alias for quoted_printable_encode()');
+ }
+
// And these are from ext/standard/tests/strings/quoted_printable_encode_002.phpt:
$this->assertEquals(
"=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=\r\n"