[Pkg-owncloud-commits] [php-sabre-vobject] 58/106: This unittest no longer makes sense.
David Prévot
taffit at moszumanska.debian.org
Fri Aug 22 15:11:03 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 3dc3cbe0d37624698368faff1cb460959489eda7
Author: Evert Pot <evert at rooftopsolutions.nl>
Date: Sun Aug 3 12:18:39 2014 -0400
This unittest no longer makes sense.
---
.../UntilRespectsTimezoneTest.php | 60 ----------------------
1 file changed, 60 deletions(-)
diff --git a/tests/Sabre/VObject/RecurrenceIterator/UntilRespectsTimezoneTest.php b/tests/Sabre/VObject/RecurrenceIterator/UntilRespectsTimezoneTest.php
deleted file mode 100644
index 2490ff0..0000000
--- a/tests/Sabre/VObject/RecurrenceIterator/UntilRespectsTimezoneTest.php
+++ /dev/null
@@ -1,60 +0,0 @@
-<?php
-namespace Sabre\VObject\RecurrenceIterator;
-
-use Sabre\VObject\RecurrenceIterator;
-use Sabre\VObject\Reader;
-
-class RespectsTimezoneTest extends \PHPUnit_Framework_TestCase {
-
- public function testUntilBeginHasTimezone() {
-
- $filepath = realpath(__DIR__ . "/.");
- $event = Reader::read(file_get_contents($filepath . "/UntilRespectsTimezoneTest.ics"));
-
- $ri = new RecurrenceIterator($event, "10621-1440 at ccbchurch.com");
- $this->assertEquals("America/New_York", $ri->until->getTimezone()->getName());
- }
-
- public function testUntilEndingInZIsUtc()
- {
- $ics_data = <<<ICS
-BEGIN:VCALENDAR
-VERSION:2.0
-PRODID:-//Apple Inc.//Mac OS X 10.9//EN
-CALSCALE:GREGORIAN
-BEGIN:VTIMEZONE
-TZID:America/Chicago
-BEGIN:DAYLIGHT
-TZOFFSETFROM:-0600
-RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU
-DTSTART:20070311T020000
-TZNAME:CDT
-TZOFFSETTO:-0500
-END:DAYLIGHT
-BEGIN:STANDARD
-TZOFFSETFROM:-0500
-RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU
-DTSTART:20071104T020000
-TZNAME:CST
-TZOFFSETTO:-0600
-END:STANDARD
-END:VTIMEZONE
-BEGIN:VEVENT
-CREATED:20131216T214410Z
-UID:D33B6D78-A214-4752-8659-9EE718D5AB8D
-RRULE:FREQ=WEEKLY;INTERVAL=1;UNTIL=20131119T065959Z
-DTEND;TZID=America/Chicago:20130923T203000
-TRANSP:OPAQUE
-SUMMARY:Test Financial Peace
-DTSTART;TZID=America/Chicago:20130923T183000
-DTSTAMP:20131216T215922Z
-SEQUENCE:28
-END:VEVENT
-END:VCALENDAR
-ICS;
- $event = Reader::read($ics_data);
- $ri = new RecurrenceIterator($event, "D33B6D78-A214-4752-8659-9EE718D5AB8D");
- $this->assertEquals("UTC", $ri->until->getTimezone()->getName());
- }
-}
-
--
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