From 5570ad60b496974607790dab49fc80cce8f5c700 Mon Sep 17 00:00:00 2001 From: thomascube Date: Tue, 26 Jan 2010 07:19:56 +0000 Subject: Improved charset detection in vcard import + added unit tests for it --- tests/mailfunc.php | 6 +++--- tests/src/apple.vcf | 49 +++++++++++++++++++++++++++++++++++++++++++++++ tests/src/johndoe.vcf | 11 +++++++++++ tests/vcards.php | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 116 insertions(+), 3 deletions(-) create mode 100644 tests/src/apple.vcf create mode 100644 tests/src/johndoe.vcf create mode 100644 tests/vcards.php (limited to 'tests') diff --git a/tests/mailfunc.php b/tests/mailfunc.php index ae35c5d77..0e9363a0b 100644 --- a/tests/mailfunc.php +++ b/tests/mailfunc.php @@ -51,11 +51,11 @@ class rcube_test_mailfunc extends UnitTestCase $this->assertPattern('#background="./program/blocked.gif"#', $html, "Replace external background image"); $this->assertNoPattern('/ex3.jpg/', $html, "No references to external images"); $this->assertNoPattern('/]+>/', $html, "No meta tags allowed"); - $this->assertNoPattern('/