| Total Complexity | 3 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class YearTest extends TestCase |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @test |
||
| 15 | * @expectedException \TypeError |
||
| 16 | */ |
||
| 17 | public function constructor_GivenInvalidYearType_ShouldThrowTypeErrorException() |
||
| 20 | } |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @test |
||
| 24 | */ |
||
| 25 | public function includes_GivenDateAtSameYear_ShouldReturnTrue() |
||
| 26 | { |
||
| 27 | $date = new DateTime('2015-04-10'); |
||
| 28 | $expr = new Year(2015); |
||
| 29 | |||
| 30 | $isIncluded = $expr->includes($date); |
||
| 31 | |||
| 32 | $this->assertThat($isIncluded, $this->isTrue()); |
||
| 33 | } |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @test |
||
| 37 | */ |
||
| 38 | public function includes_GivenDateAtDifferentYear_ShouldReturnFalse() |
||
| 46 | } |
||
| 47 | } |
||
| 48 |