Conditions | 1 |
Paths | 1 |
Total Lines | 34 |
Code Lines | 22 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | public function testOptions() |
||
19 | { |
||
20 | $processor = new Processor(); |
||
21 | |||
22 | $config = $processor->processConfiguration(new Configuration(), array(array( |
||
23 | 'api' => array( |
||
24 | 'app_id' => 'foo_id', |
||
25 | 'shared_secret' => 'bar_secret', |
||
26 | ), |
||
27 | ))); |
||
28 | |||
29 | $expected = array( |
||
30 | 'api' => array( |
||
31 | 'app_id' => 'foo_id', |
||
32 | 'shared_secret' => 'bar_secret', |
||
33 | 'endpoint' => 'http://ws.audioscrobbler.com/2.0/', |
||
34 | 'auth_url' => 'http://www.last.fm/api/auth/', |
||
35 | ), |
||
36 | 'auth_success' => array( |
||
37 | 'route' => null, |
||
38 | 'route_parameters' => array(), |
||
39 | ), |
||
40 | 'auth_error' => array( |
||
41 | 'route' => null, |
||
42 | 'route_parameters' => array(), |
||
43 | ), |
||
44 | 'http' => array( |
||
45 | 'client' => 'httplug.client.default', |
||
46 | 'message_factory' => 'httplug.message_factory.default', |
||
47 | ), |
||
48 | ); |
||
49 | |||
50 | $this->assertSame($expected, $config); |
||
51 | } |
||
52 | } |
||
53 |