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