Skip to content

Commit

Permalink
Rename exceptBetween to unlessBetween
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobBennett committed Sep 1, 2016
1 parent b7983bb commit bfccd31
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Illuminate/Console/Scheduling/Event.php
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,7 @@ public function between($startTime, $endTime)
* @param string $endTime
* @return $this
*/
public function exceptBetween($startTime, $endTime)
public function unlessBetween($startTime, $endTime)
{
return $this->skip($this->inTimeInterval($startTime, $endTime));
}
Expand Down
4 changes: 2 additions & 2 deletions tests/Console/ConsoleScheduledEventTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public function testTimeBetweenChecks()
$this->assertTrue($event->between("9:00", "9:00")->filtersPass($app));
$this->assertFalse($event->between("10:00", "11:00")->filtersPass($app));

$this->assertFalse($event->exceptBetween("8:00", "10:00")->filtersPass($app));
$this->assertTrue($event->exceptBetween("10:00", "11:00")->isDue($app));
$this->assertFalse($event->unlessBetween("8:00", "10:00")->filtersPass($app));
$this->assertTrue($event->unlessBetween("10:00", "11:00")->isDue($app));
}
}

0 comments on commit bfccd31

Please sign in to comment.