Conditions | 1 |
Paths | 1 |
Total Lines | 23 |
Code Lines | 18 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
34 | public function testHelperWithSymfony3() |
||
35 | { |
||
36 | $container = $this->getMock('Symfony\Component\DependencyInjection\ContainerInterface'); |
||
37 | $container |
||
38 | ->expects($this->any()) |
||
39 | ->method('getParameter') |
||
40 | ->with('assets.packages') |
||
41 | ->willReturn('Exist'); |
||
42 | |||
43 | $container |
||
44 | ->expects($this->any()) |
||
45 | ->method('getParameter') |
||
46 | ->with('templating.helper.assets') |
||
47 | ->will($this->throwException(new \Exception())); |
||
48 | |||
49 | $container |
||
50 | ->expects($this->any()) |
||
51 | ->method('has') |
||
52 | ->with('templating.helper.assets') |
||
53 | ->willReturn(false); |
||
54 | |||
55 | $this->assertInstanceOf('Liip\MonitorBundle\Helper\PathHelper', new PathHelper($container, '3.0.1')); |
||
56 | } |
||
57 | |||
59 |