Total Complexity | 5 |
Total Lines | 53 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
11 | class WeekInYearTest extends TestCase |
||
12 | { |
||
13 | /** |
||
14 | * @test |
||
15 | * @expectedException \TypeError |
||
16 | */ |
||
17 | public function constructor_GivenInvalidWeekInYearType_ShouldThrowTypeErrorException() |
||
18 | { |
||
19 | new WeekInYear('invalid'); |
||
|
|||
20 | } |
||
21 | |||
22 | public function getInvalidDayDataProvider() |
||
23 | { |
||
24 | return [ |
||
25 | [0], |
||
26 | [55], |
||
27 | ]; |
||
28 | } |
||
29 | |||
30 | /** |
||
31 | * @test |
||
32 | * @dataProvider getInvalidDayDataProvider |
||
33 | * @expectedException \Exception |
||
34 | */ |
||
35 | public function constructor_GivenInvalidWeek_ShouldThrowAnException($day) |
||
38 | } |
||
39 | |||
40 | /** |
||
41 | * @test |
||
42 | */ |
||
43 | public function includes_GivenDateWithMatchingWeek_ShouldReturnTrue() |
||
51 | } |
||
52 | |||
53 | /** |
||
54 | * @test |
||
55 | */ |
||
56 | public function includes_GivenDateAtDifferentWeek_ShouldReturnFalse() |
||
64 | } |
||
65 | } |
||
66 |