[Pkg-owncloud-commits] [php-sabre-vobject] 40/43: Test for undefined index issue

David Prévot taffit at moszumanska.debian.org
Sat Sep 5 15:23:52 UTC 2015


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

taffit pushed a commit to tag 4.0.0-alpha2
in repository php-sabre-vobject.

commit a949a2303bd9b2f04ea9c955b0bdebac31f838a5
Author: Dominik Tobschall <dominik at fruux.com>
Date:   Thu Apr 23 23:17:42 2015 +0200

    Test for undefined index issue
---
 tests/VObject/IssueUndefinedIndexTest.php | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/tests/VObject/IssueUndefinedIndexTest.php b/tests/VObject/IssueUndefinedIndexTest.php
new file mode 100644
index 0000000..950c604
--- /dev/null
+++ b/tests/VObject/IssueUndefinedIndexTest.php
@@ -0,0 +1,27 @@
+<?php
+
+namespace Sabre\VObject;
+
+class IssueUndefinedIndexTest extends \PHPUnit_Framework_TestCase {
+
+    function testRead() {
+
+        $input = <<<VCF
+BEGIN:VCARD
+VERSION:3.0
+PRODID:foo
+N:Holmes;Sherlock;;;
+FN:Sherlock Holmes
+ORG:Acme Inc;
+ADR;type=WORK;type=pref:;;,
+\\n221B,Baker Street;London;;12345;United Kingdom
+UID:foo
+END:VCARD
+VCF;
+
+        $vcard = Reader::read($input, Reader::OPTION_FORGIVING);
+        $this->assertInstanceOf('Sabre\\VObject\\Component\\VCard', $vcard);
+
+    }
+
+}

-- 
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