1 | <?php |
||
12 | class CalculatorTest extends \PHPUnit_Framework_TestCase |
||
13 | { |
||
14 | /** @var Calculator */ |
||
15 | private $_sut; |
||
16 | |||
17 | public function setUp() |
||
21 | |||
22 | /** |
||
23 | * @return array |
||
24 | */ |
||
25 | public function dataProvider() |
||
29 | |||
30 | /** |
||
31 | * @dataProvider dataProvider |
||
32 | * |
||
33 | * @param string $message |
||
34 | * @param \DateTime $startDate |
||
35 | * @param int $howManyDays |
||
36 | * @param \DateTime $expected |
||
37 | * @param int[] $nonBusinessDays |
||
38 | * @param \DateTime[] $freeDays |
||
39 | * @param \DateTime[] $holidays |
||
40 | */ |
||
41 | public function testReturnsExpected( |
||
58 | |||
59 | /** |
||
60 | * @expectedException \InvalidArgumentException |
||
61 | */ |
||
62 | public function testTooManyBusinessDaysException() |
||
79 | |||
80 | public function testThatPassedParameterIsNotChangedByReferenceInSut() |
||
88 | } |
||
89 |