| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 11 |
| Ratio | 100 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 13 | public function testFragmentRenderer() |
||
| 14 | { |
||
| 15 | $observer = $this->prophesize('\Symfony\Component\HttpKernel\Fragment\FragmentHandler'); |
||
| 16 | $observer->render('test', 'esi', [])->willReturn('test')->shouldBeCalled(); |
||
| 17 | |||
| 18 | $helper = new EsiHelper($observer->reveal()); |
||
| 19 | $result = $helper->handle('test', []); |
||
| 20 | |||
| 21 | $this->assertInstanceOf('\LightnCandy\SafeString', $result); |
||
| 22 | $this->assertSame('test', (string)$result); |
||
| 23 | } |
||
| 24 | } |
||
| 25 |