From 5f409deae920eefc78be72dc4ec1e840504480de Mon Sep 17 00:00:00 2001 From: rlanvin Date: Wed, 1 Jul 2015 12:56:09 +0300 Subject: [PATCH] Adding debug for failing test on Travis --- tests/RRuleTest.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/RRuleTest.php b/tests/RRuleTest.php index 17842ea..016d84e 100755 --- a/tests/RRuleTest.php +++ b/tests/RRuleTest.php @@ -1390,7 +1390,8 @@ class RRuleTest extends PHPUnit_Framework_TestCase public function testRulesWithoutOccurrences($rule) { $rule = new RRule($rule); - $this->assertEmpty($rule->getOccurrences()); + $occurrences = $rule->getOccurrences(); + $this->assertEmpty($rule->getOccurrences(), 'This should be empty : '.json_encode($occurrences)); } /** @@ -1562,7 +1563,7 @@ class RRuleTest extends PHPUnit_Framework_TestCase { $rule = new RRule($rule); foreach ( $not_occurences as $date ) { - $this->assertFalse($rule->occursAt($date), $date); + $this->assertFalse($rule->occursAt($date), "Rule must not match $date"); } }