b C Foo Bar A XML; $parser = new PHPParser_Parser; $serializer = new PHPParser_Serializer_XML; $stmts = $parser->parse(new PHPParser_Lexer($code)); $this->assertXmlStringEqualsXmlString($xml, $serializer->serialize($stmts)); } }