From eff92c614bc44b2899fca4f8f9365fc035b91f21 Mon Sep 17 00:00:00 2001 From: Alexander Schranz Date: Mon, 18 Jan 2021 12:25:45 +0100 Subject: [PATCH] Fix code style --- .../Command/EnsureProductionSettingsCommandTest.php | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/tests/Doctrine/Tests/ORM/Tools/Console/Command/EnsureProductionSettingsCommandTest.php b/tests/Doctrine/Tests/ORM/Tools/Console/Command/EnsureProductionSettingsCommandTest.php index c3c40de19d5..aa5885ef180 100644 --- a/tests/Doctrine/Tests/ORM/Tools/Console/Command/EnsureProductionSettingsCommandTest.php +++ b/tests/Doctrine/Tests/ORM/Tools/Console/Command/EnsureProductionSettingsCommandTest.php @@ -8,13 +8,14 @@ use Doctrine\ORM\Tools\Console\Command\EnsureProductionSettingsCommand; use Doctrine\ORM\Tools\Console\Helper\EntityManagerHelper; use Doctrine\Tests\OrmTestCase; +use RuntimeException; use Symfony\Component\Console\Application; use Symfony\Component\Console\Helper\HelperSet; use Symfony\Component\Console\Tester\CommandTester; class EnsureProductionSettingsCommandTest extends OrmTestCase { - public function testExecute() + public function testExecute(): void { $em = $this->createMock(EntityManagerInterface::class); @@ -31,14 +32,14 @@ public function testExecute() $this->assertSame(0, $this->executeCommand($em)); } - public function testExecuteFailed() + public function testExecuteFailed(): void { $em = $this->createMock(EntityManagerInterface::class); $configuration = $this->createMock(Configuration::class); $configuration->expects($this->once()) ->method('ensureProductionSettings') - ->willThrowException(new \RuntimeException()); + ->willThrowException(new RuntimeException()); $em->method('getConfiguration') ->willReturn($configuration); @@ -49,7 +50,7 @@ public function testExecuteFailed() $this->assertSame(1, $this->executeCommand($em)); } - public function testExecuteWithComplete() + public function testExecuteWithComplete(): void { $em = $this->createMock(EntityManagerInterface::class); @@ -86,9 +87,9 @@ private function executeCommand( $tester = new CommandTester($command); return $tester->execute( - \array_merge([ + array_merge([ 'command' => $command->getName(), - ], $input), + ], $input) ); } }