Skip to content

Commit

Permalink
test timespan contains start but not end
Browse files Browse the repository at this point in the history
  • Loading branch information
smhg committed Dec 20, 2018
1 parent 21c1510 commit 833f3fa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/Timespan.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ public function testContains($span)
$date = clone $span->start;
$date->modify('+3 day');

$this->assertTrue($span->contains($span->start));
$this->assertFalse($span->contains($span->end));
$this->assertTrue($span->contains($date));
$this->assertFalse($span->contains($date->modify('-1 week')));
}
Expand Down

0 comments on commit 833f3fa

Please sign in to comment.