[Pkg-owncloud-commits] [php-sabre-vobject] 20/43: add test for isInTimeRange()

David Prévot taffit at moszumanska.debian.org
Sat Sep 5 15:23:49 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 57383aed4180a45a5c72d81b48262822245c1996
Author: Armin Hackmann <armin at fruux.com>
Date:   Wed Jul 29 10:32:32 2015 +0200

    add test for isInTimeRange()
    
    the given timezone should be considered for recurring all-day events
---
 tests/VObject/Component/VEventTest.php | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/VObject/Component/VEventTest.php b/tests/VObject/Component/VEventTest.php
index c8c75ed..1bf1cee 100644
--- a/tests/VObject/Component/VEventTest.php
+++ b/tests/VObject/Component/VEventTest.php
@@ -69,6 +69,8 @@ class VEventTest extends \PHPUnit_Framework_TestCase {
         $vevent7->DTSTART['VALUE'] = 'DATE';
         $vevent7->RRULE = 'FREQ=MONTHLY';
         $tests[] = [$vevent7, new \DateTime('2012-02-01 15:00:00'), new \DateTime('2012-02-02'), true];
+        // The timezone of timerange in question should also be considered.
+        $tests[] = [$vevent7, new \DateTime('2012-02-02 00:00:00', new \DateTimeZone('Europe/Berlin')), new \DateTime('2012-02-03 00:00:00', new \DateTimeZone('Europe/Berlin')), false];
         return $tests;
 
     }

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