summaryrefslogtreecommitdiffstats
path: root/tests/lib/vobject.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/vobject.php')
-rw-r--r--tests/lib/vobject.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/lib/vobject.php b/tests/lib/vobject.php
new file mode 100644
index 00000000000..1103a4b3297
--- /dev/null
+++ b/tests/lib/vobject.php
@@ -0,0 +1,19 @@
+<?php
+/**
+ * Copyright (c) 2013 Thomas Tanghus (thomas@tanghus.net)
+ * This file is licensed under the Affero General Public License version 3 or
+ * later.
+ * See the COPYING-README file.
+ */
+
+class Test_VObject extends PHPUnit_Framework_TestCase {
+
+ public function setUp() {
+ Sabre\VObject\Property::$classMap['SUMMARY'] = 'OC\VObject\StringProperty';
+ }
+
+ function testStringProperty() {
+ $property = Sabre\VObject\Property::create('SUMMARY', 'Escape;this,please');
+ $this->assertEquals("SUMMARY:Escape\;this\,please\r\n", $property->serialize());
+ }
+} \ No newline at end of file