1 | <?php |
||
6 | abstract class AbstractDateTester extends \PHPUnit_Framework_TestCase |
||
7 | { |
||
8 | /** |
||
9 | * @param int $year |
||
10 | * @param string $description |
||
11 | * @param bool $isValid |
||
12 | * @param bool $bankHoliday |
||
13 | * @param int $totalLength |
||
14 | * @param string $endDateString (yyyy-mm-dd) |
||
15 | * @param string $startDateString (yyyy-mm-dd) |
||
16 | * |
||
17 | * @dataProvider provider |
||
18 | */ |
||
19 | 51 | public function testSpecialDate($year, $description, $isValid, $bankHoliday, $totalLength, $startDateString, $endDateString) |
|
43 | |||
44 | /** |
||
45 | * Dataprovider for the unittest. Extend this method in your concrete test. |
||
46 | * |
||
47 | * @return array |
||
48 | */ |
||
49 | abstract public function provider(); |
||
50 | |||
51 | /** |
||
52 | * Create and return the SpecialDateObject you want to test. |
||
53 | * |
||
54 | * @param $year |
||
55 | * |
||
56 | * @return SpecialDateInterface |
||
57 | */ |
||
58 | abstract protected function createDateObject($year); |
||
59 | } |
||
60 |