diff --git a/tests/Command/DumpCommandTest.php b/tests/Command/DumpCommandTest.php index 787ab5b9c..bb9d298c5 100644 --- a/tests/Command/DumpCommandTest.php +++ b/tests/Command/DumpCommandTest.php @@ -49,10 +49,10 @@ public function testYaml(): void '--server-url' => 'http://example.com/api', ]); $expectedYaml = <<expects(self::once()) ->method('info') ->with( - 'Can not assign a name for the model, the name "ModelRegistryTest" has already been taken.', [ + 'Can not assign a name for the model, the name "ModelRegistryTest" has already been taken.', + [ 'model' => [ 'type' => $arrayType, 'options' => [], @@ -65,7 +66,8 @@ public function testNameCollisionsAreLogged(Type $type, array $arrayType): void 'extra_context' => true, ], ], - ]); + ] + ); $registry = new ModelRegistry([], $this->createOpenApi(), []); $registry->setLogger($logger); @@ -124,7 +126,8 @@ public function testNameCollisionsAreLoggedWithAlternativeNames(): void ->expects(self::once()) ->method('info') ->with( - 'Can not assign a name for the model, the name "ModelRegistryTest" has already been taken.', [ + 'Can not assign a name for the model, the name "ModelRegistryTest" has already been taken.', + [ 'model' => [ 'type' => [ 'class' => 'Nelmio\\ApiDocBundle\\Tests\\Model\\ModelRegistryTest', @@ -151,7 +154,8 @@ public function testNameCollisionsAreLoggedWithAlternativeNames(): void 'groups' => ['group1'], 'serialization_context' => ['groups' => ['group1']], ], - ]); + ] + ); $registry = new ModelRegistry([], $this->createOpenApi(), $alternativeNames); $registry->setLogger($logger);