Conditions | 1 |
Paths | 1 |
Total Lines | 23 |
Code Lines | 18 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | public function testHelperWithSymfony2() |
||
11 | { |
||
12 | $container = $this->getMock('Symfony\Component\DependencyInjection\ContainerInterface'); |
||
13 | $container |
||
14 | ->expects($this->any()) |
||
15 | ->method('getParameter') |
||
16 | ->with('templating.helper.assets') |
||
17 | ->willReturn('Exist'); |
||
18 | |||
19 | $container |
||
20 | ->expects($this->any()) |
||
21 | ->method('getParameter') |
||
22 | ->with('assets.packages') |
||
23 | ->will($this->throwException(new \Exception())); |
||
24 | |||
25 | $container |
||
26 | ->expects($this->any()) |
||
27 | ->method('has') |
||
28 | ->with('templating.helper.assets') |
||
29 | ->willReturn(true); |
||
30 | |||
31 | $this->assertInstanceOf('Liip\MonitorBundle\Helper\PathHelper', new PathHelper($container, '2.0.1')); |
||
32 | } |
||
33 | |||
59 |