/**
  * @covers \jones\novaposhta\http\Client::execute
  */
 public function testExecute()
 {
     $this->request->expects(static::once())->method('getBody')->willReturn($this->getRequest());
     $this->response->expects(static::never())->method('getRequest');
     $this->response->expects(static::never())->method('hasResponse');
     $this->response->expects(static::never())->method('getRequest');
     $this->response->expects(static::once())->method('getBody')->willReturn($this->getResponse());
     $response = $this->client->execute($this->request, ConverterInterface::FORMAT_JSON, Request::API_URL_JSON);
     $converter = new XmlConverter();
     $actual = $converter->decode($response);
     static::assertNotEmpty($actual['success']);
     static::assertTrue((bool) $actual['success']);
 }
 /**
  * @param array $expected
  * @param string $data
  * @covers \jones\novaposhta\converters\XmlConverter::removeItemKey
  * @dataProvider responseDataProvider
  */
 public function testRemoveItemKey(array $expected, $data)
 {
     static::assertEquals($expected, $this->converter->decode($data));
 }