| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 22 | public function testRegisterBindings(): void |
||
| 23 | { |
||
| 24 | $eventDispatchedMock = $this->getMockBuilder(IEventDispatcher::class)->getMock(); |
||
| 25 | $eventDispatchedMock->expects($this->once())->method('dispatch'); |
||
| 26 | |||
| 27 | $container = new Container(); |
||
| 28 | $container->bindInstance(IEventDispatcher::class, $eventDispatchedMock); |
||
| 29 | |||
| 30 | $this->sut->registerBindings($container); |
||
| 31 | |||
| 32 | $actual = $container->resolve(SecretGenerator::class); |
||
| 33 | $this->assertInstanceOf(SecretGenerator::class, $actual); |
||
| 34 | } |
||
| 36 |