Conditions | 1 |
Paths | 1 |
Total Lines | 26 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
20 | public function testOptions(): void |
||
21 | { |
||
22 | $processor = new Processor(); |
||
23 | |||
24 | $config = $processor->processConfiguration(new Configuration(), [[ |
||
25 | 'api' => [ |
||
26 | 'app_id' => 'foo_id', |
||
27 | 'shared_secret' => 'bar_secret', |
||
28 | ], |
||
29 | ]]); |
||
30 | |||
31 | $expected = [ |
||
32 | 'api' => [ |
||
33 | 'app_id' => 'foo_id', |
||
34 | 'shared_secret' => 'bar_secret', |
||
35 | 'endpoint' => 'http://ws.audioscrobbler.com/2.0/', |
||
36 | 'auth_url' => 'http://www.last.fm/api/auth/', |
||
37 | ], |
||
38 | 'http' => [ |
||
39 | 'client' => null, |
||
40 | 'message_factory' => null, |
||
41 | ], |
||
42 | ]; |
||
43 | |||
44 | static::assertSame($expected, $config); |
||
45 | } |
||
46 | } |
||
47 |