/** * Test the response in case of a error api response */ public function testCreationWithInvalidData() { $fakeData = <<<EOF <responseee> <status>NOT A VALID XML STRING</status> </responseee> EOF; /** @var BaseResponse $response */ $this->assertFalse($this->response->create($this->converter->reconvert($fakeData))); }