| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 17 | public function setUp() |
||
| 18 | { |
||
| 19 | $this->event = new Event(); |
||
| 20 | |||
| 21 | $flashBag = $this->getMockBuilder('Symfony\Component\HttpFoundation\Session\Flash\FlashBag')->getMock(); |
||
| 22 | |||
| 23 | $session = $this->getMockBuilder('Symfony\Component\HttpFoundation\Session\Session')->disableOriginalConstructor()->getMock(); |
||
| 24 | $session |
||
| 25 | ->expects($this->once()) |
||
| 26 | ->method('getFlashBag') |
||
| 27 | ->willReturn($flashBag); |
||
| 28 | |||
| 29 | $translator = $this->getMockBuilder('Symfony\Component\Translation\TranslatorInterface')->getMock(); |
||
| 30 | |||
| 31 | $this->listener = new FlashListener($session, $translator); |
||
| 32 | } |
||
| 44 |