/**
  * @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']);
 }
 /**
  * @covers \jones\novaposhta\converters\XmlConverter::getType
  */
 public function testGetType()
 {
     static::assertEquals('xml', $this->converter->getType());
 }