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