mirror of
https://github.com/rlanvin/php-rrule.git
synced 2025-02-20 09:54:16 +01:00
Update travis.yml for php 7 and 7.1
This commit is contained in:
parent
51c7c5c56d
commit
4ca0c62e0a
@ -5,5 +5,9 @@ php:
|
||||
- 5.5
|
||||
- 5.6
|
||||
- 7.0
|
||||
- 7.1
|
||||
install:
|
||||
- composer install
|
||||
- composer install
|
||||
- composer require --dev phpunit/phpunit "<6"
|
||||
script:
|
||||
- vendor/bin/phpunit
|
@ -17,7 +17,7 @@
|
||||
- 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)
|
||||
- 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
|
||||
|
||||
@ -98,6 +98,7 @@
|
||||
- First release, everything before that was unversioned (`dev-master` was used).
|
||||
|
||||
[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.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
|
||||
|
@ -15,5 +15,8 @@
|
||||
"psr-4": {
|
||||
"RRule\\": "src/"
|
||||
}
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "<6"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1975,21 +1975,23 @@ class RRuleTest extends PHPUnit_Framework_TestCase
|
||||
$str = $rrule->rfcString();
|
||||
$new_rrule = new RRule($str);
|
||||
}
|
||||
/* todo: only run this test for php > 5.4
|
||||
|
||||
public function testUnsupportedTimezoneConvertedToUtc()
|
||||
{
|
||||
$date = new DateTime('2016-07-08 12:00:00', new DateTimeZone('+06:00'));
|
||||
$rrule = new RRule(array(
|
||||
"freq" => "WEEKLY",
|
||||
"dtstart" => $date,
|
||||
"interval" => 1
|
||||
));
|
||||
if (version_compare(PHP_VERSION, '5.5', '>=')) {
|
||||
$date = new DateTime('2016-07-08 12:00:00', new DateTimeZone('+06:00'));
|
||||
$rrule = new RRule(array(
|
||||
"freq" => "WEEKLY",
|
||||
"dtstart" => $date,
|
||||
"interval" => 1
|
||||
));
|
||||
|
||||
$str = $rrule->rfcString();
|
||||
$this->assertTrue(strpos($str, '20160708T060000Z')!== false);
|
||||
$new_rrule = new RRule($str);
|
||||
$str = $rrule->rfcString();
|
||||
$this->assertTrue(strpos($str, '20160708T060000Z')!== false);
|
||||
$new_rrule = new RRule($str);
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
public function rfcStringsWithoutTimezone()
|
||||
{
|
||||
return array(
|
||||
|
Loading…
x
Reference in New Issue
Block a user