Conditions | 1 |
Paths | 1 |
Total Lines | 21 |
Code Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | public function testGetConfigurationValue() |
||
12 | { |
||
13 | $class = new ReflectionClass(SqsQueueStoreConnection::class); |
||
14 | |||
15 | $method = $class->getMethod('getConfigurationValue'); |
||
16 | $method->setAccessible(true); |
||
17 | |||
18 | $key = 'AKIAxxxxxxxxxxxxxxxZ'; |
||
19 | $secret = 'AxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxZ'; |
||
20 | $region = 'eu-north-99'; |
||
21 | |||
22 | $connection = new SqsQueueStoreConnection([ |
||
23 | 'key' => $key, |
||
24 | 'secret' => $secret, |
||
25 | 'region' => $region, |
||
26 | ]); |
||
27 | |||
28 | $this->assertEquals($key, $method->invoke($connection, 'key')); |
||
29 | $this->assertEquals($secret, $method->invoke($connection, 'secret')); |
||
30 | $this->assertEquals($region, $method->invoke($connection, 'region')); |
||
31 | } |
||
32 | |||
45 |