Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | public function testGetHandler() |
||
12 | { |
||
13 | $container = new ContainerBuilder(); |
||
14 | $container->register('fake_command_handler', 'stdClass'); |
||
15 | $container->compile(); |
||
16 | |||
17 | $locator = new ContainerBasedHandlerLocator($container, [ |
||
18 | 'FakeCommand' => 'fake_command_handler', |
||
19 | 'OtherCommand' => 'other_command_handler' |
||
20 | ]); |
||
21 | |||
22 | $this->assertInstanceOf('stdClass', $locator->getHandlerForCommand('FakeCommand')); |
||
23 | } |
||
24 | |||
38 |