improve code style
This commit is contained in:
parent
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);
|
||||||
|
@ -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()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user