[Pkg-owncloud-commits] [php-sabre-vobject] 107/128: Moved all recurence iterator tests to their own directory.
David Prévot
taffit at moszumanska.debian.org
Tue May 20 23:11:07 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 305efe4211630fb7d56d489bf05622a2cf0d9f37
Author: Evert Pot <evert at rooftopsolutions.nl>
Date: Tue Apr 22 12:40:49 2014 -0400
Moved all recurence iterator tests to their own directory.
---
.../ByMonthInDailyTest.php} | 0
.../FifthTuesdayProblemTest.php} | 0
.../IncorrectExpandTest.php} | 0
.../InfiniteLoopProblemTest.php} | 0
.../MainTest.php} | 0
.../MissingOverriddenTest.php} | 0
.../UntilRespectsTimezoneTest.ics} | 0
.../UntilRespectsTimezoneTest.php} | 11 +++++---
.../RecurrenceIteratorMinusOneProblemTest.php | 30 ----------------------
9 files changed, 8 insertions(+), 33 deletions(-)
diff --git a/tests/Sabre/VObject/RecurrenceIteratorByMonthInDailyTest.php b/tests/Sabre/VObject/RecurrenceIterator/ByMonthInDailyTest.php
similarity index 100%
rename from tests/Sabre/VObject/RecurrenceIteratorByMonthInDailyTest.php
rename to tests/Sabre/VObject/RecurrenceIterator/ByMonthInDailyTest.php
diff --git a/tests/Sabre/VObject/RecurrenceIteratorFifthTuesdayProblemTest.php b/tests/Sabre/VObject/RecurrenceIterator/FifthTuesdayProblemTest.php
similarity index 100%
rename from tests/Sabre/VObject/RecurrenceIteratorFifthTuesdayProblemTest.php
rename to tests/Sabre/VObject/RecurrenceIterator/FifthTuesdayProblemTest.php
diff --git a/tests/Sabre/VObject/RecurrenceIteratorIncorrectExpandTest.php b/tests/Sabre/VObject/RecurrenceIterator/IncorrectExpandTest.php
similarity index 100%
rename from tests/Sabre/VObject/RecurrenceIteratorIncorrectExpandTest.php
rename to tests/Sabre/VObject/RecurrenceIterator/IncorrectExpandTest.php
diff --git a/tests/Sabre/VObject/RecurrenceIteratorInfiniteLoopProblemTest.php b/tests/Sabre/VObject/RecurrenceIterator/InfiniteLoopProblemTest.php
similarity index 100%
rename from tests/Sabre/VObject/RecurrenceIteratorInfiniteLoopProblemTest.php
rename to tests/Sabre/VObject/RecurrenceIterator/InfiniteLoopProblemTest.php
diff --git a/tests/Sabre/VObject/RecurrenceIteratorTest.php b/tests/Sabre/VObject/RecurrenceIterator/MainTest.php
similarity index 100%
rename from tests/Sabre/VObject/RecurrenceIteratorTest.php
rename to tests/Sabre/VObject/RecurrenceIterator/MainTest.php
diff --git a/tests/Sabre/VObject/RecurrenceIteratorMissingOverriddenTest.php b/tests/Sabre/VObject/RecurrenceIterator/MissingOverriddenTest.php
similarity index 100%
rename from tests/Sabre/VObject/RecurrenceIteratorMissingOverriddenTest.php
rename to tests/Sabre/VObject/RecurrenceIterator/MissingOverriddenTest.php
diff --git a/tests/Sabre/VObject/RecurrenceIteratorUntilRespectsTimezoneTest.ics b/tests/Sabre/VObject/RecurrenceIterator/UntilRespectsTimezoneTest.ics
similarity index 100%
rename from tests/Sabre/VObject/RecurrenceIteratorUntilRespectsTimezoneTest.ics
rename to tests/Sabre/VObject/RecurrenceIterator/UntilRespectsTimezoneTest.ics
diff --git a/tests/Sabre/VObject/RecurrenceIteratorUntilRespectsTimezoneTest.php b/tests/Sabre/VObject/RecurrenceIterator/UntilRespectsTimezoneTest.php
similarity index 83%
rename from tests/Sabre/VObject/RecurrenceIteratorUntilRespectsTimezoneTest.php
rename to tests/Sabre/VObject/RecurrenceIterator/UntilRespectsTimezoneTest.php
index a8e4671..584c051 100644
--- a/tests/Sabre/VObject/RecurrenceIteratorUntilRespectsTimezoneTest.php
+++ b/tests/Sabre/VObject/RecurrenceIterator/UntilRespectsTimezoneTest.php
@@ -1,10 +1,15 @@
<?php
-namespace Sabre\VObject;
+namespace Sabre\VObject\RecurrenceIterator;
+
+use Sabre\VObject\RecurrenceIterator;
+use Sabre\VObject\Reader;
class RecurrenceIteratorUntilRespectsTimezoneTest extends \PHPUnit_Framework_TestCase {
- public function testUntilBeginHasTimezone() {
+
+ public function testUntilBeginHasTimezone() {
+
$filepath = realpath(__DIR__ . "/.");
- $event = Reader::read(file_get_contents($filepath . "/RecurrenceIteratorUntilRespectsTimezoneTest.ics"));
+ $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());
diff --git a/tests/Sabre/VObject/RecurrenceIteratorMinusOneProblemTest.php b/tests/Sabre/VObject/RecurrenceIteratorMinusOneProblemTest.php
deleted file mode 100644
index 2c17f9f..0000000
--- a/tests/Sabre/VObject/RecurrenceIteratorMinusOneProblemTest.php
+++ /dev/null
@@ -1,30 +0,0 @@
-<?php
-
-namespace Sabre\VObject;
-
-class RecurrenceIteratorMinusOneProblemTest extends \PHPUnit_Framework_TestCase {
-
- function testMinusOne() {
-
- $ics = <<<ICS
-BEGIN:VCALENDAR
-BEGIN:VEVENT
-DTSTAMP:20120314T203127Z
-UID:foo
-SUMMARY:foo
-RRULE:FREQ=YEARLY;UNTIL=20120314
-DTSTART;VALUE=DATE:20120315
-DTEND;VALUE=DATE:20120316
-SEQUENCE:1
-END:VEVENT
-END:VCALENDAR
-ICS;
-
- $vObject = Reader::read($ics);
- $it = new RecurrenceIterator($vObject, (string)$vObject->VEVENT->UID);
-
- $this->assertTrue($it->valid());
-
- }
-
-}
--
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