diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-02-27 13:30:34 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-02-27 13:30:34 +0000 |
| commit | 4342ffe9c5919c22e80d654ddd04dcddaec3679f (patch) | |
| tree | df146d06a2c5acd70582e5d11d9dd8ab81bcd883 /roundcubemail/tests/vcards.php | |
| parent | dd78eef97d61356e9299a51f60d1c273b2715157 (diff) | |
Improve vcard import: map more fields, support photo urls, better UTF-16 charset detection
git-svn-id: https://svn.roundcube.net/trunk@4575 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/tests/vcards.php')
| -rw-r--r-- | roundcubemail/tests/vcards.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/roundcubemail/tests/vcards.php b/roundcubemail/tests/vcards.php index 3b8f260c4..ba5ce2bef 100644 --- a/roundcubemail/tests/vcards.php +++ b/roundcubemail/tests/vcards.php @@ -54,4 +54,12 @@ class rcube_test_vcards extends UnitTestCase $this->assertEqual("Iksiñski", $vcards2[0]->surname, "Detect charset in encoded values"); } + function test_encodings() + { + $input = file_get_contents($this->_srcpath('utf-16_sample.vcf')); + + $vcards = rcube_vcard::import($input); + $this->assertEqual("Ǽgean ĽdaMonté", $vcards[0]->displayname, "Decoded from UTF-16"); + } + } |
