convertToSimpleXml() публичный статический Метод

public static convertToSimpleXml ( Psr\Http\Message\ResponseInterface $response ) : SimpleXMLElement
$response Psr\Http\Message\ResponseInterface
Результат SimpleXMLElement
 /**
  * @expectedException \Happyr\LinkedIn\Exception\LinkedInTransferException
  */
 public function testConvertToSimpleXmlError()
 {
     $body = '{Foo: bar}';
     $response = new Response(200, [], $body);
     $result = ResponseConverter::convertToSimpleXml($response);
     $this->assertInstanceOf('\\SimpleXMLElement', $result);
     $this->assertEquals('foo', $result->firstname);
 }