1 | <?php |
||
8 | class ConfigTest extends TestCase |
||
9 | { |
||
10 | protected $defaultParams = [ |
||
11 | 'apiKey' => 'some api key', |
||
12 | 'login' => 'someLogin', |
||
13 | 'passwordHash' => 'passwordHash', |
||
14 | 'isSandbox' => true, |
||
15 | 'countryCode' => 1, |
||
16 | ]; |
||
17 | |||
18 | |||
19 | /** |
||
20 | * @expectedException InvalidArgumentException |
||
21 | * @expectedExceptionMessage apiKey is required in params array |
||
22 | */ |
||
23 | public function testApiKeyRequired() |
||
29 | |||
30 | |||
31 | /** |
||
32 | * @expectedException InvalidArgumentException |
||
33 | * @expectedExceptionMessage login is required in params array |
||
34 | */ |
||
35 | public function testLoginRequired() |
||
41 | |||
42 | /** |
||
43 | * @expectedException InvalidArgumentException |
||
44 | * @expectedExceptionMessage passwordHash is required in params array |
||
45 | */ |
||
46 | public function testPasswordHashRequired() |
||
52 | |||
53 | |||
54 | /** |
||
55 | * @expectedException InvalidArgumentException |
||
56 | * @expectedExceptionMessage isSandbox is required in params array |
||
57 | */ |
||
58 | public function testIsSandboxRequired() |
||
64 | |||
65 | |||
66 | /** |
||
67 | * @expectedException InvalidArgumentException |
||
68 | * @expectedExceptionMessage countryCode is required in params array |
||
69 | */ |
||
70 | public function testCountryCodeRequired() |
||
76 | |||
77 | |||
78 | public function testGetters() |
||
88 | |||
89 | |||
90 | public function testPlaintextPassword() |
||
97 | |||
98 | } |
||
99 |