1 | <?php |
||
12 | class DirectLinkMaintenanceRequestTest extends \PHPUnit_Framework_TestCase |
||
13 | { |
||
14 | |||
15 | /** @test */ |
||
16 | public function IsValidWhenRequiredFieldsAreFilledIn() |
||
21 | |||
22 | /** |
||
23 | * @test |
||
24 | * @expectedException \RuntimeException |
||
25 | */ |
||
26 | public function IsInvalidWhenFieldsAreMissing() |
||
31 | |||
32 | /** |
||
33 | * @test |
||
34 | * @expectedException \InvalidArgumentException |
||
35 | */ |
||
36 | public function isInvalidWithNonOgoneUrl() |
||
42 | |||
43 | /** |
||
44 | * @test |
||
45 | */ |
||
46 | public function isValidWithOgoneUrl() |
||
52 | |||
53 | /** |
||
54 | * @test |
||
55 | */ |
||
56 | public function isValidWithIntegerAmount() |
||
62 | |||
63 | /** |
||
64 | * @test |
||
65 | * @dataProvider provideBadParameters |
||
66 | * @expectedException \InvalidArgumentException |
||
67 | */ |
||
68 | public function BadParametersCauseExceptions($method, $value) |
||
73 | |||
74 | public function provideBadParameters() |
||
83 | |||
84 | /** @return DirectLinkMaintenanceRequest */ |
||
85 | private function provideMinimalDirectLinkMaintenanceRequest() |
||
96 | } |
||
97 |