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( $this->callMethod(
$sutMock, $sutMock,
'requestAndParse', 'requestAndParse',
['POST', 'endpoint.php', ['options'=>'']] ['POST', 'endpoint.php', ['options' => '']]
) )
); );
} }
@ -223,7 +223,7 @@ class ConnectionTest extends TestCase
->setConstructorArgs([$status, [], $content]) ->setConstructorArgs([$status, [], $content])
->onlyMethods(['getStatusCode']) ->onlyMethods(['getStatusCode'])
->getMock(); ->getMock();
$responseMock->method('getStatusCode')->willReturn( $status); $responseMock->method('getStatusCode')->willReturn($status);
if ($expectException) { if ($expectException) {
$this->expectException(ResponseContentException::class); $this->expectException(ResponseContentException::class);

View File

@ -119,7 +119,7 @@ class KlicktippTest extends TestCase
* @covers \D3\KlicktippPhpClient\Klicktipp::tag * @covers \D3\KlicktippPhpClient\Klicktipp::tag
* @dataProvider instanceGetterDataProvider * @dataProvider instanceGetterDataProvider
*/ */
public function testInstanceGetter(string $testMethodName, string $expectedClassName) public function testInstanceGetter(string $testMethodName, string $expectedClassName): void
{ {
$connectionMock = $this->getMockBuilder(Connection::class) $connectionMock = $this->getMockBuilder(Connection::class)
->disableOriginalConstructor() ->disableOriginalConstructor()