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