From c4d2dc65f675d7735ba6f33ef34572cdf4ac1f8c Mon Sep 17 00:00:00 2001 From: Daniel Seifert Date: Thu, 9 Jan 2025 08:50:21 +0100 Subject: [PATCH] improve code style --- tests/unit/ConnectionTest.php | 6 +++--- tests/unit/Exceptions/CommunicationExceptionTest.php | 2 +- tests/unit/KlicktippTest.php | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/unit/ConnectionTest.php b/tests/unit/ConnectionTest.php index be2262e..d4308c2 100644 --- a/tests/unit/ConnectionTest.php +++ b/tests/unit/ConnectionTest.php @@ -198,7 +198,7 @@ class ConnectionTest extends TestCase $this->callMethod( $sutMock, 'requestAndParse', - ['POST', 'endpoint.php', ['options'=>'']] + ['POST', 'endpoint.php', ['options' => '']] ) ); } @@ -223,7 +223,7 @@ class ConnectionTest extends TestCase ->setConstructorArgs([$status, [], $content]) ->onlyMethods(['getStatusCode']) ->getMock(); - $responseMock->method('getStatusCode')->willReturn( $status); + $responseMock->method('getStatusCode')->willReturn($status); if ($expectException) { $this->expectException(ResponseContentException::class); @@ -245,4 +245,4 @@ class ConnectionTest extends TestCase yield '204' => [204, '{"foo": "bar"}', [], false]; yield 'no array return' => [200, '"foo"', [], true]; } -} \ No newline at end of file +} diff --git a/tests/unit/Exceptions/CommunicationExceptionTest.php b/tests/unit/Exceptions/CommunicationExceptionTest.php index ef2fce6..4a6283f 100644 --- a/tests/unit/Exceptions/CommunicationExceptionTest.php +++ b/tests/unit/Exceptions/CommunicationExceptionTest.php @@ -50,4 +50,4 @@ class CommunicationExceptionTest extends TestCase $sutMock->getMessage() ); } -} \ No newline at end of file +} diff --git a/tests/unit/KlicktippTest.php b/tests/unit/KlicktippTest.php index 8b4f4e8..eec773e 100644 --- a/tests/unit/KlicktippTest.php +++ b/tests/unit/KlicktippTest.php @@ -119,7 +119,7 @@ class KlicktippTest extends TestCase * @covers \D3\KlicktippPhpClient\Klicktipp::tag * @dataProvider instanceGetterDataProvider */ - public function testInstanceGetter(string $testMethodName, string $expectedClassName) + public function testInstanceGetter(string $testMethodName, string $expectedClassName): void { $connectionMock = $this->getMockBuilder(Connection::class) ->disableOriginalConstructor() @@ -148,4 +148,4 @@ class KlicktippTest extends TestCase yield ['subscriber', Subscriber::class]; yield ['tag', Tag::class]; } -} \ No newline at end of file +}