improve code style

This commit is contained in:
Daniel Seifert 2025-01-09 08:50:21 +01:00
parent e52845329f
commit c4d2dc65f6
3 changed files with 6 additions and 6 deletions

View File

@ -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];
}
}
}

View File

@ -50,4 +50,4 @@ class CommunicationExceptionTest extends TestCase
$sutMock->getMessage()
);
}
}
}

View File

@ -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];
}
}
}