1
0
mirror of https://github.com/rlanvin/php-rrule.git synced 2025-02-20 09:54:16 +01:00

More PHP 5.3 compatibility fixes

This commit is contained in:
rlanvin 2015-06-27 14:18:58 +03:00
parent 3cf95e57ef
commit 783a9b5c97
2 changed files with 3 additions and 2 deletions

View File

@ -48,7 +48,7 @@ Just add this to your `composer.json` file:
```JSON
{
"require": {
"rlanvin/php-rrule": "dev-master*"
"rlanvin/php-rrule": "dev-master"
}
}
```

View File

@ -900,8 +900,9 @@ class RRuleTest extends PHPUnit_Framework_TestCase
*/
public function testDoesNotOccursAt($rule, $not_occurences)
{
$rule = new RRule($rule);
foreach ( $not_occurences as $date ) {
$this->assertFalse((new RRule($rule))->occursAt($date), $date);
$this->assertFalse($rule->occursAt($date), $date);
}
}
}