[Pkg-owncloud-commits] [php-sabre-vobject] 24/38: Test cleanup. #131

David Prévot taffit at moszumanska.debian.org
Tue Sep 23 03:10:22 UTC 2014


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

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

commit ee6931df8d8bcdea0c8dbc66abfa635af98a8f54
Author: Evert Pot <evert at rooftopsolutions.nl>
Date:   Wed Sep 17 19:29:41 2014 +0100

    Test cleanup. #131
---
 .../EventIterator/NoInstancesTest.php}                           | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/tests/VObject/IssueEXDATETest.php b/tests/VObject/Recur/EventIterator/NoInstancesTest.php
similarity index 82%
rename from tests/VObject/IssueEXDATETest.php
rename to tests/VObject/Recur/EventIterator/NoInstancesTest.php
index c089d57..e6c450f 100644
--- a/tests/VObject/IssueEXDATETest.php
+++ b/tests/VObject/Recur/EventIterator/NoInstancesTest.php
@@ -1,10 +1,9 @@
 <?php
 
-namespace Sabre\VObject;
+namespace Sabre\VObject\Recur;
 
 use
-    DateTime,
-    DateTimeZone;
+    Sabre\VObject\Reader;
 
 class IssueEXDATETest extends \PHPUnit_Framework_TestCase {
 
@@ -12,6 +11,8 @@ class IssueEXDATETest extends \PHPUnit_Framework_TestCase {
 
         $input = <<<ICS
 BEGIN:VCALENDAR
+PRODID:-//Google Inc//Google Calendar 70.9054//EN
+VERSION:2.0
 BEGIN:VEVENT
 DTSTART;TZID=Europe/Berlin:20130329T140000
 DTEND;TZID=Europe/Berlin:20130329T153000
@@ -29,7 +30,7 @@ ICS;
         $vcal = Reader::read($input);
         $this->assertInstanceOf('Sabre\\VObject\\Component\\VCalendar', $vcal);
 
-        $it = new Recur\EventIterator($vcal, 'foo');
+        $it = new EventIterator($vcal, 'foo');
 
         $end = $it->getDtEnd();
 

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