1
0
mirror of https://github.com/rlanvin/php-rrule.git synced 2025-02-21 10:54:14 +01:00

Update travis.yml for php 7 and 7.1

This commit is contained in:
rlanvin 2017-03-29 14:27:26 +01:00
parent 51c7c5c56d
commit 4ca0c62e0a
4 changed files with 24 additions and 14 deletions

View File

@ -5,5 +5,9 @@ php:
- 5.5 - 5.5
- 5.6 - 5.6
- 7.0 - 7.0
- 7.1
install: install:
- composer install - composer install
- composer require --dev phpunit/phpunit "<6"
script:
- vendor/bin/phpunit

View File

@ -17,7 +17,7 @@
- Fix parser handling of UNTIL when DTSTART is not provided [#25](https://github.com/rlanvin/php-rrule/issues/25) - Fix parser handling of UNTIL when DTSTART is not provided [#25](https://github.com/rlanvin/php-rrule/issues/25)
- Accept invalid RFC strings generated by the JS lib but triggers a Notice message [#25](https://github.com/rlanvin/php-rrule/issues/25) - Accept invalid RFC strings generated by the JS lib but triggers a Notice message [#25](https://github.com/rlanvin/php-rrule/issues/25)
- Rework `RRule::i18nLoad()` to accept locales such as `en_sg` and use `Locale::parseLocale` when possible [#24](https://github.com/rlanvin/php-rrule/issues/24) - Rework `RRule::i18nLoad()` to accept locales such as `en_sg` and use `Locale::parseLocale` when possible [#24](https://github.com/rlanvin/php-rrule/issues/24)
- Fix `humanReadable` fails with `intl` enable when the timezone is "Z" [#24](https://github.com/rlanvin/php-rrule/issues/24) - Fix `humanReadable` fails with `intl` enabled when the timezone is "Z" [#24](https://github.com/rlanvin/php-rrule/issues/24)
## [1.4.0] - 2016-11-11 ## [1.4.0] - 2016-11-11
@ -98,6 +98,7 @@
- First release, everything before that was unversioned (`dev-master` was used). - First release, everything before that was unversioned (`dev-master` was used).
[Unreleased]: https://github.com/rlanvin/php-rrule/compare/v1.4.1...HEAD [Unreleased]: https://github.com/rlanvin/php-rrule/compare/v1.4.1...HEAD
[1.4.2]: https://github.com/rlanvin/php-rrule/compare/v1.4.1...v1.4.2
[1.4.1]: https://github.com/rlanvin/php-rrule/compare/v1.4.0...v1.4.1 [1.4.1]: https://github.com/rlanvin/php-rrule/compare/v1.4.0...v1.4.1
[1.4.0]: https://github.com/rlanvin/php-rrule/compare/v1.3.1...v1.4.0 [1.4.0]: https://github.com/rlanvin/php-rrule/compare/v1.3.1...v1.4.0
[1.3.1]: https://github.com/rlanvin/php-rrule/compare/v1.3.0...v1.3.1 [1.3.1]: https://github.com/rlanvin/php-rrule/compare/v1.3.0...v1.3.1

View File

@ -15,5 +15,8 @@
"psr-4": { "psr-4": {
"RRule\\": "src/" "RRule\\": "src/"
} }
},
"require-dev": {
"phpunit/phpunit": "<6"
} }
} }

View File

@ -1975,21 +1975,23 @@ class RRuleTest extends PHPUnit_Framework_TestCase
$str = $rrule->rfcString(); $str = $rrule->rfcString();
$new_rrule = new RRule($str); $new_rrule = new RRule($str);
} }
/* todo: only run this test for php > 5.4
public function testUnsupportedTimezoneConvertedToUtc() public function testUnsupportedTimezoneConvertedToUtc()
{ {
$date = new DateTime('2016-07-08 12:00:00', new DateTimeZone('+06:00')); if (version_compare(PHP_VERSION, '5.5', '>=')) {
$rrule = new RRule(array( $date = new DateTime('2016-07-08 12:00:00', new DateTimeZone('+06:00'));
"freq" => "WEEKLY", $rrule = new RRule(array(
"dtstart" => $date, "freq" => "WEEKLY",
"interval" => 1 "dtstart" => $date,
)); "interval" => 1
));
$str = $rrule->rfcString(); $str = $rrule->rfcString();
$this->assertTrue(strpos($str, '20160708T060000Z')!== false); $this->assertTrue(strpos($str, '20160708T060000Z')!== false);
$new_rrule = new RRule($str); $new_rrule = new RRule($str);
}
} }
*/
public function rfcStringsWithoutTimezone() public function rfcStringsWithoutTimezone()
{ {
return array( return array(