public function seeResponseIsXml()
    {
        libxml_use_internal_errors(true);
        $doc = simplexml_load_string($this->connectionModule->_getResponseContent());
        $num = "";
        $title = "";
        if ($doc === false) {
            $error = libxml_get_last_error();
            $num = $error->code;
            $title = trim($error->message);
            libxml_clear_errors();
        }
        libxml_use_internal_errors(false);
        \PHPUnit\Framework\Assert::assertNotSame(
            false,
            $doc,
            "xml decoding error #$num with message \"$title\", see http://www.xmlsoft.org/html/libxml-xmlerror.html"
        );
    }
public function seeResponseIsXml()
    {
        libxml_use_internal_errors(true);
        $doc = simplexml_load_string($this->connectionModule->_getResponseContent());
        $num = "";
        $title = "";
        if ($doc === false) {
            $error = libxml_get_last_error();
            $num = $error->code;
            $title = trim($error->message);
            libxml_clear_errors();
        }
        libxml_use_internal_errors(false);
        \PHPUnit\Framework\Assert::assertNotSame(
            false,
            $doc,
            "xml decoding error #$num with message \"$title\", see http://www.xmlsoft.org/html/libxml-xmlerror.html"
        );
    }
public function seeResponseIsXml ( ) { libxml_use_internal_errors ( true ) ; $ doc = simplexml_load_string ( $ this -> connectionModule -> _getResponseContent ( ) ) ; $ num = "" ; $ title = "" ; if ( $ doc === false ) { $ error = libxml_get_last_error ( ) ; $ num = $ error -> code ; $ title = trim ( $ error -> message ) ; libxml_clear_errors ( ) ; } libxml_use_internal_errors ( false ) ; \ PHPUnit \ Framework \ Assert :: assertNotSame ( false , $ doc , "xml decoding error #$num with message \"$title\", see http://www.xmlsoft.org/html/libxml-xmlerror.html" ) ; }
Checks whether last response was valid XML.
This is done with libxml_get_last_error function.

@part xml
Checks whether last response was valid XML . This is done with libxml_get_last_error function .