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