1 | <?php |
||
11 | class DirectLinkQueryRequestTest extends \PHPUnit_Framework_TestCase |
||
12 | { |
||
13 | |||
14 | /** @test */ |
||
15 | public function IsValidWhenRequiredFieldsAreFilledIn() |
||
20 | |||
21 | /** |
||
22 | * @test |
||
23 | * @expectedException \RuntimeException |
||
24 | */ |
||
25 | public function IsInvalidWhenFieldsAreMissing() |
||
30 | |||
31 | /** |
||
32 | * @test |
||
33 | * @expectedException \InvalidArgumentException |
||
34 | */ |
||
35 | public function isInvalidWithNonOgoneUrl() |
||
41 | |||
42 | /** |
||
43 | * @test |
||
44 | */ |
||
45 | public function isValidWithOgoneUrl() |
||
51 | |||
52 | /** |
||
53 | * @test |
||
54 | * @dataProvider provideBadParameters |
||
55 | * @expectedException \InvalidArgumentException |
||
56 | */ |
||
57 | public function BadParametersCauseExceptions($method, $value) |
||
62 | |||
63 | public function provideBadParameters() |
||
70 | |||
71 | /** @return DirectLinkQueryRequest */ |
||
72 | private function provideMinimalDirectLinkQueryRequest() |
||
82 | } |
||
83 |