[Pkg-owncloud-commits] [php-sabre-vobject] 34/128: Added a test for Issue 26.

David Prévot taffit at moszumanska.debian.org
Tue May 20 23:11:00 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 b247f32e85b63d286355c3c15a3e6611c5f5806f
Author: Evert Pot <evert at rooftopsolutions.nl>
Date:   Wed Jan 22 00:38:52 2014 -0500

    Added a test for Issue 26.
---
 tests/Sabre/VObject/Issue26Test.php | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/tests/Sabre/VObject/Issue26Test.php b/tests/Sabre/VObject/Issue26Test.php
new file mode 100644
index 0000000..3fe4a13
--- /dev/null
+++ b/tests/Sabre/VObject/Issue26Test.php
@@ -0,0 +1,36 @@
+<?php
+
+namespace Sabre\VObject;
+
+use
+    DateTime,
+    DateTimeZone;
+
+class Issue26Test extends \PHPUnit_Framework_TestCase {
+
+    /**
+     * @expectedException \InvalidArgumentException
+     */
+    function testExpand() {
+
+        $input = <<<ICS
+BEGIN:VCALENDAR
+VERSION:2.0
+BEGIN:VEVENT
+UID:bae5d57a98
+RRULE:FREQ=MONTHLY;BYDAY=0MO,0TU,0WE,0TH,0FR;INTERVAL=1
+DTSTART;VALUE=DATE:20130401
+DTEND;VALUE=DATE:20130402
+END:VEVENT
+END:VCALENDAR
+ICS;
+
+        $vcal = Reader::read($input);
+        $this->assertInstanceOf('Sabre\\VObject\\Component\\VCalendar', $vcal);
+
+        $it = new RecurrenceIterator($vcal, 'bae5d57a98');
+        iterator_to_array($it);
+
+    }
+
+}

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