public function testThrowExceptionWhenIsString() { $string = 'returned string'; $this->setExpectedException('fXmlRpc\\Exception\\ParserException', 'Invalid XML. Expected XML, string given: "returned string"'); $this->parser->parse($string); }