| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 15 | 
| Code Lines | 10 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 15 | public function testDispatch(): void  | 
            ||
| 16 |     { | 
            ||
| 17 | $event = new stdClass();  | 
            ||
| 18 | $eventDispatcher = $this->createMock(EventDispatcherInterface::class);  | 
            ||
| 19 | $collector = $this->createMock(EventCollector::class);  | 
            ||
| 20 | |||
| 21 |         $eventDispatcher->method('dispatch')->willReturn($event); | 
            ||
| 22 | $collector  | 
            ||
| 23 | ->expects($this->once())  | 
            ||
| 24 |             ->method('collect') | 
            ||
| 25 | ->with($event, __FILE__ . ':29');  | 
            ||
| 26 | |||
| 27 | $proxy = new EventDispatcherInterfaceProxy($eventDispatcher, $collector);  | 
            ||
| 28 | |||
| 29 | $proxy->dispatch($event);  | 
            ||
| 30 | }  | 
            ||
| 32 |