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