Skip to content

Commit

Permalink
remove RuleCollection and ScheduleBuilder
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-gribanov committed Jul 25, 2017
1 parent 59c5567 commit 16b5816
Show file tree
Hide file tree
Showing 9 changed files with 3 additions and 471 deletions.
52 changes: 0 additions & 52 deletions src/RuleCollection.php

This file was deleted.

77 changes: 0 additions & 77 deletions src/ScheduleBuilder.php

This file was deleted.

38 changes: 0 additions & 38 deletions tests/functional/build_schedule.php

This file was deleted.

2 changes: 1 addition & 1 deletion tests/unit/Rule/EverydayRuleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function testIsMatched(\DateTime $time, $start, $end, $seconds, $match)

$this->assertEquals($start, $rule->start());
$this->assertEquals($end, $rule->end());
$this->assertTrue($rule->seconds() <= $seconds);
$this->assertLessThanOrEqual($seconds, $rule->seconds());

if ($match) {
$this->assertTrue($rule->isMatched($time));
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/Rule/HolidayRuleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function testIsMatched(\DateTime $time, $start, $end, $seconds, $match)

$this->assertEquals($start, $rule->start());
$this->assertEquals($end, $rule->end());
$this->assertTrue($rule->seconds() <= $seconds);
$this->assertLessThanOrEqual($seconds, $rule->seconds());

if ($match) {
$this->assertTrue($rule->isMatched($time));
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/Rule/WeekdayRuleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function testIsMatched(\DateTime $time, $start, $end, $seconds, $match)

$this->assertEquals($start, $rule->start());
$this->assertEquals($end, $rule->end());
$this->assertTrue($rule->seconds() <= $seconds);
$this->assertLessThanOrEqual($seconds, $rule->seconds());

if ($match) {
$this->assertTrue($rule->isMatched($time));
Expand Down
57 changes: 0 additions & 57 deletions tests/unit/RuleCollectionTest.php

This file was deleted.

142 changes: 0 additions & 142 deletions tests/unit/ScheduleBuilderTest.php

This file was deleted.

Loading

0 comments on commit 16b5816

Please sign in to comment.