= 80000) { $this->expectExceptionMessage( <<<'MESSAGE' Doctrine\Bundle\DoctrineBundle\Command\DoctrineCommand::__construct(): Argument #1 ($doctrine) must be of type Doctrine\Persistence\ManagerRegistry, null given, called in /home/runner/work/DoctrineFixturesBundle/DoctrineFixturesBundle/Command/LoadDataFixturesDoctrineCommand.php on line 49 MESSAGE ); throw $e; } $this->expectExceptionMessage(sprintf( 'Argument 1 passed to Doctrine\Bundle\DoctrineBundle\Command\DoctrineCommand::__construct() must be an instance of %s, null given', ManagerRegistry::class )); throw $e; } } /** * @doesNotPerformAssertions */ public function testInstantiatingWithManagerRegistry() : void { $registry = $this->createMock(ManagerRegistry::class); $loader = new SymfonyFixturesLoader(new Container()); new LoadDataFixturesDoctrineCommand($loader, $registry); } }