improve code style
Cette révision appartient à :
Parent
e52845329f
révision
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);
|
||||
@ -245,4 +245,4 @@ class ConnectionTest extends TestCase
|
||||
yield '204' => [204, '{"foo": "bar"}', [], false];
|
||||
yield 'no array return' => [200, '"foo"', [], true];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -50,4 +50,4 @@ class CommunicationExceptionTest extends TestCase
|
||||
$sutMock->getMessage()
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Chargement…
x
Référencer dans un nouveau ticket
Bloquer un utilisateur