[Pkg-owncloud-commits] [php-sabre-vobject] 32/43: Added BirthdayCalendarGeneratorTest for empty BDAY properties

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 4fc6674d96486db3bb8d43609ca62a854710823a
Author: Dominik Tobschall <dominik at fruux.com>
Date:   Wed Aug 26 10:39:40 2015 +0200

    Added BirthdayCalendarGeneratorTest for empty BDAY properties
---
 tests/VObject/BirthdayCalendarGeneratorTest.php | 29 +++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/tests/VObject/BirthdayCalendarGeneratorTest.php b/tests/VObject/BirthdayCalendarGeneratorTest.php
index a28484a..1fc1180 100644
--- a/tests/VObject/BirthdayCalendarGeneratorTest.php
+++ b/tests/VObject/BirthdayCalendarGeneratorTest.php
@@ -414,6 +414,35 @@ ICS;
 
     }
 
+    function testVcardStringWithEmptyBirthdayProperty() {
+
+        $generator = new BirthdayCalendarGenerator();
+        $input = <<<VCF
+BEGIN:VCARD
+VERSION:3.0
+N:Gump;Forrest;;Mr.
+FN:Forrest Gump
+BDAY:
+UID:foo
+END:VCARD
+VCF;
+
+        $expected = <<<ICS
+BEGIN:VCALENDAR
+VERSION:2.0
+END:VCALENDAR
+ICS;
+
+        $generator->setObjects($input);
+        $output = $generator->getResult();
+
+        $this->assertVObjEquals(
+            $expected,
+            $output
+        );
+
+    }
+
     /**
      * @expectedException \Sabre\VObject\ParseException
      */

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