set covers annotation for each test, complete tests

This commit is contained in:
2022-07-16 23:49:47 +02:00
parent f5579d9d5e
commit 05132f82ee
14 changed files with 393 additions and 15 deletions

View File

@ -29,6 +29,9 @@ abstract class AbstractResponse extends ApiTestCase
/**
* @test
* @throws ReflectionException
* @covers \D3\LinkmobilityClient\SMS\Response::__construct
* @covers \D3\LinkmobilityClient\SMS\Response::getRawResponse
* @covers \D3\LinkmobilityClient\SMS\Response::getContent
*/
public function testConstruct()
{
@ -102,6 +105,7 @@ abstract class AbstractResponse extends ApiTestCase
/**
* @test
* @throws ReflectionException
* @covers \D3\LinkmobilityClient\SMS\Response::getInternalStatus
*/
public function testGetInternalStatus()
{
@ -111,6 +115,7 @@ abstract class AbstractResponse extends ApiTestCase
/**
* @test
* @throws ReflectionException
* @covers \D3\LinkmobilityClient\SMS\Response::getStatusMessage
*/
public function testGetStatusMessage()
{
@ -120,6 +125,7 @@ abstract class AbstractResponse extends ApiTestCase
/**
* @test
* @throws ReflectionException
* @covers \D3\LinkmobilityClient\SMS\Response::getClientMessageId
*/
public function testGetClientMessageId()
{
@ -129,6 +135,7 @@ abstract class AbstractResponse extends ApiTestCase
/**
* @test
* @throws ReflectionException
* @covers \D3\LinkmobilityClient\SMS\Response::getTransferId
*/
public function testGetTransferId()
{
@ -138,6 +145,7 @@ abstract class AbstractResponse extends ApiTestCase
/**
* @test
* @throws ReflectionException
* @covers \D3\LinkmobilityClient\SMS\Response::getSmsCount
*/
public function testGetSmsCount()
{
@ -151,6 +159,7 @@ abstract class AbstractResponse extends ApiTestCase
*
* @throws ReflectionException
* @dataProvider isSuccessfulDataProvider
* @covers \D3\LinkmobilityClient\SMS\Response::isSuccessful
*/
public function testIsSuccessful($statusCode, $expected)
{
@ -189,6 +198,7 @@ abstract class AbstractResponse extends ApiTestCase
*
* @throws ReflectionException
* @dataProvider getErrorMessageDataProvider
* @covers \D3\LinkmobilityClient\SMS\Response::getErrorMessage
*/
public function testGetErrorMessage($successful, $expected)
{