Conditions | 1 |
Paths | 1 |
Total Lines | 17 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
29 | public function testDispatchEvent() |
||
30 | { |
||
31 | $symfonyDispatcher = $this->getMock(EventDispatcherInterface::class); |
||
32 | |||
33 | $symfonyDispatcher |
||
34 | ->expects($this->once()) |
||
35 | ->method('dispatch') |
||
36 | ->with( |
||
37 | 'DispatcherTest', |
||
38 | $this->isInstanceOf(SymfonyEvent::class) |
||
39 | ) |
||
40 | ; |
||
41 | |||
42 | $dispatcher = new Dispatcher($symfonyDispatcher); |
||
43 | |||
44 | $dispatcher->dispatch($this); |
||
45 | } |
||
46 | } |