public function testSuccessfulSend() { $response =
$this->
createMock(ResponseInterface::
class);
$response ->
expects(self::
exactly(2
)) ->
method('getStatusCode'
) ->
willReturn(200
) ;
$response ->
expects(self::
once()) ->
method('getContent'
) ->
willReturn(json_encode([ 'response_code' => 0,
'response_status' => 'OK',
'response_result' =>
[ [ 'phone' => '380931234567',
'response_code' => 0,
'message_id' => 'f83f8868-5e46-c6cf-e4fb-615e5a293754',
'response_status' => 'OK',
],
],