fire([]))->toBeFalse(); }); test('fire', function (): void { $di = container(); $di['logger'] = new FOSSBilling\Logger(); $connection = Mockery::mock(Doctrine\DBAL\Connection::class); $connection->shouldReceive('fetchAllAssociative')->atLeast()->once()->andReturn([]); $di['em']->shouldReceive('getConnection')->andReturn($connection); $manager = new Box_EventManager(); $manager->setDi($di); $manager->fire(['event' => 'onBeforeClientSignup']); });