[Pkg-owncloud-commits] [php-sabre-vobject] 96/128: Freebusy testing.

David Prévot taffit at moszumanska.debian.org
Tue May 20 23:11:06 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 c2dedf925c5c9f5a7284b961272aaea2190a5da0
Author: Evert Pot <evert at rooftopsolutions.nl>
Date:   Wed Apr 2 18:04:31 2014 -0400

    Freebusy testing.
---
 tests/Sabre/VObject/Component/VFreeBusyTest.php | 27 +++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/tests/Sabre/VObject/Component/VFreeBusyTest.php b/tests/Sabre/VObject/Component/VFreeBusyTest.php
index 031c3c6..46acc69 100644
--- a/tests/Sabre/VObject/Component/VFreeBusyTest.php
+++ b/tests/Sabre/VObject/Component/VFreeBusyTest.php
@@ -1,7 +1,9 @@
 <?php
 
 namespace Sabre\VObject\Component;
+
 use Sabre\VObject;
+use Sabre\VObject\Reader;
 
 class VFreeBusyTest extends \PHPUnit_Framework_TestCase {
 
@@ -36,4 +38,29 @@ BLA;
 
     }
 
+    public function testValidate() {
+
+        $input = <<<HI
+BEGIN:VCALENDAR
+VERSION:2.0
+PRODID:YoYo
+BEGIN:VFREEBUSY
+UID:some-random-id
+DTSTAMP:20140402T180200Z
+END:VFREEBUSY
+END:VCALENDAR
+HI;
+
+        $obj = Reader::read($input);
+
+        $warnings = $obj->validate();
+        $messages = array();
+        foreach($warnings as $warning) {
+            $messages[] = $warning['message'];
+        }
+
+        $this->assertEquals(array(), $messages);
+
+    }
+
 }

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