/** * @dataProvider processProvider() */ public function testProcess($in_xml, $out_xml) { $doc = new SimpleXMLElement(file_get_contents($in_xml)); pgsql8_xml_parser::process($doc); // Uncomment this line to create the _out file that will be asserted against. // Make sure to double check the contents and then commit to version control //file_put_contents($out_xml, $doc->saveXML()); $this->assertEquals(new SimpleXMLElement(file_get_contents($out_xml)), $doc); }