[Pkg-owncloud-commits] [php-sabre-vobject] 06/128: Added test for Issue #68.

David Prévot taffit at moszumanska.debian.org
Tue May 20 23:10:57 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository php-sabre-vobject.

commit c5e1fdd0ebf611ce60fa3df069d787e3f68d0f1f
Author: Evert Pot <evert at rooftopsolutions.nl>
Date:   Fri Nov 15 15:16:55 2013 -0500

    Added test for Issue #68.
---
 tests/Sabre/VObject/EmptyValueIssueTest.php | 31 +++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/tests/Sabre/VObject/EmptyValueIssueTest.php b/tests/Sabre/VObject/EmptyValueIssueTest.php
new file mode 100644
index 0000000..1f993ea
--- /dev/null
+++ b/tests/Sabre/VObject/EmptyValueIssueTest.php
@@ -0,0 +1,31 @@
+<?php
+
+namespace Sabre\VObject;
+
+/**
+ * This test is written for Issue 68:
+ *
+ * https://github.com/fruux/sabre-vobject/issues/68 
+ */
+class EmptyValueIssueTest extends \PHPUnit_Framework_TestCase {
+
+    function testDecodeValue() {
+
+        $input = <<<ICS
+BEGIN:VCALENDAR
+VERSION:2.0
+BEGIN:VEVENT
+DESCRIPTION:This is a descpription\\nwith a linebreak and a \\; \\, and :
+END:VEVENT
+END:VCALENDAR
+ICS;
+
+        $vobj = Reader::read($input);
+
+        // Before this bug was fixed, getValue() would return nothing.
+        $this->assertEquals("This is a descpription\nwith a linebreak and a ; , and :", $vobj->VEVENT->DESCRIPTION->getValue());
+
+    }
+
+}
+

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/php-sabre-vobject.git



More information about the Pkg-owncloud-commits mailing list