From: Gunnar Wrobel
Date: Tue, 11 Jan 2011 20:28:21 +0000 (+0100)
Subject: MFB: Add same test as on CVS though for the git version there is no code fix necessar...
X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=3c04609c1fae44523b04851656d29b5e0db05ac6;p=horde.git
MFB: Add same test as on CVS though for the git version there is no code fix necessary. The library is already utf8 only.
---
diff --git a/framework/Kolab_Format/package.xml b/framework/Kolab_Format/package.xml
index 9e6952d37..b5df980c6 100644
--- a/framework/Kolab_Format/package.xml
+++ b/framework/Kolab_Format/package.xml
@@ -29,8 +29,8 @@
jan@horde.org
yes
- 2010-12-10
-
+ 2011-01-11
+
1.1.0
1.1.0
@@ -377,6 +377,7 @@
+
@@ -576,6 +577,7 @@
+
@@ -725,7 +727,7 @@
stable
stable
- 2010-12-10
+ 2011-01-11
LGPL
* Removed dependency on the Kolab package within the task handler.
diff --git a/framework/Kolab_Format/test/Horde/Kolab/Format/Integration/ContactTest.php b/framework/Kolab_Format/test/Horde/Kolab/Format/Integration/ContactTest.php
index 33eb0ee37..d22e811bc 100644
--- a/framework/Kolab_Format/test/Horde/Kolab/Format/Integration/ContactTest.php
+++ b/framework/Kolab_Format/test/Horde/Kolab/Format/Integration/ContactTest.php
@@ -99,6 +99,19 @@ extends PHPUnit_Framework_TestCase
$this->assertContains('Test', $object['categories']);
}
+ public function testUtf8()
+ {
+ $contact = new Horde_Kolab_Format_Xml_Contact(
+ new Horde_Kolab_Format_Xml_Parser(
+ new DOMDocument('1.0', 'UTF-8')
+ )
+ );
+ $xml = file_get_contents(dirname(__FILE__) . '/fixtures/contact-kyr.xml');
+
+ $object = $contact->load($xml);
+ $this->assertEquals('леле Ðакакака', $object['full-name']);
+ }
+
/* /\** */
/* * Test loading a contact with a category with preferences. */
/* * */
diff --git a/framework/Kolab_Format/test/Horde/Kolab/Format/Integration/fixtures/contact-kyr.xml b/framework/Kolab_Format/test/Horde/Kolab/Format/Integration/fixtures/contact-kyr.xml
new file mode 100644
index 000000000..a46b7c34a
--- /dev/null
+++ b/framework/Kolab_Format/test/Horde/Kolab/Format/Integration/fixtures/contact-kyr.xml
@@ -0,0 +1,35 @@
+
+
+ 20110111175940.2085781xeofrt3ks@legolas.home.edu
+
+
+ 2011-01-11T15:59:41Z
+ 2011-01-11T16:05:27Z
+ public
+ Horde::Kolab
+
+ леле
+
+ Какакака ле г
+ леле Какакака
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+