| Total Complexity | 2 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class UntilTest extends TestCase |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @test |
||
| 15 | */ |
||
| 16 | public function includes_GivenOlderDate_ShouldReturnTrue() |
||
| 17 | { |
||
| 18 | $date = new DateTime('2015-04-12'); |
||
| 19 | $expr = new Until($date); |
||
| 20 | |||
| 21 | $isIncluded = $expr->includes(new DateTime('2015-04-11')); |
||
| 22 | |||
| 23 | $this->assertThat($isIncluded, $this->isTrue()); |
||
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @test |
||
| 28 | */ |
||
| 29 | public function includes_GivenMoreRecentDate_ShouldReturnFalse() |
||
| 37 | } |
||
| 38 | } |
||
| 39 |