Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | public function it_proxies_to_container() |
||
13 | { |
||
14 | $container = $this->getMock('Symfony\Component\DependencyInjection\ContainerInterface'); |
||
15 | $container |
||
16 | ->expects($this->exactly(2)) |
||
17 | ->method('get') |
||
18 | ->withConsecutive( |
||
19 | [$this->equalTo('foo')], |
||
20 | [$this->equalTo('bar')] |
||
21 | ) |
||
22 | ; |
||
23 | $locator = new SymfonyServiceLocator($container); |
||
24 | $locator->get('foo'); |
||
25 | $locator->get('bar'); |
||
26 | } |
||
28 |