improve code style
Dieser Commit ist enthalten in:
Ursprung
e52845329f
Commit
c4d2dc65f6
@ -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);
|
||||||
@ -245,4 +245,4 @@ class ConnectionTest extends TestCase
|
|||||||
yield '204' => [204, '{"foo": "bar"}', [], false];
|
yield '204' => [204, '{"foo": "bar"}', [], false];
|
||||||
yield 'no array return' => [200, '"foo"', [], true];
|
yield 'no array return' => [200, '"foo"', [], true];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -50,4 +50,4 @@ class CommunicationExceptionTest extends TestCase
|
|||||||
$sutMock->getMessage()
|
$sutMock->getMessage()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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()
|
||||||
@ -148,4 +148,4 @@ class KlicktippTest extends TestCase
|
|||||||
yield ['subscriber', Subscriber::class];
|
yield ['subscriber', Subscriber::class];
|
||||||
yield ['tag', Tag::class];
|
yield ['tag', Tag::class];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Laden…
x
In neuem Issue referenzieren
Einen Benutzer sperren