function parse($V0f635d0e) { if (empty($V0f635d0e)) { return new FileMaker_Error($this->_fm, 'Did not receive an XML document from the server.'); } $this->V5431b8d4 = xml_parser_create('UTF-8'); xml_set_object($this->V5431b8d4, $this); xml_parser_set_option($this->V5431b8d4, XML_OPTION_CASE_FOLDING, false); xml_parser_set_option($this->V5431b8d4, XML_OPTION_TARGET_ENCODING, 'UTF-8'); xml_set_element_handler($this->V5431b8d4, '_start', '_end'); xml_set_character_data_handler($this->V5431b8d4, '_cdata'); if (!@xml_parse($this->V5431b8d4, $V0f635d0e)) { return new FileMaker_Error($this->_fm, sprintf('XML error: %s at line %d', xml_error_string(xml_get_error_code($this->V5431b8d4)), xml_get_current_line_number($this->V5431b8d4))); } xml_parser_free($this->V5431b8d4); if (!empty($this->Vcb5e100e)) { return new FileMaker_Error($this->_fm, null, $this->Vcb5e100e); } if (version_compare($this->Vf5bf48aa['version'], FileMaker::getMinServerVersion(), '<')) { return new FileMaker_Error($this->_fm, 'This API requires at least version ' . FileMaker::getMinServerVersion() . ' of FileMaker Server to run (detected ' . $this->Vf5bf48aa['version'] . ').'); } $this->V6de51026 = true; return true; }
/** * @covers \airmoi\FileMaker\FileMaker::getMinServerVersion */ public function testGetMinServerVersion() { // Remove the following lines when you implement this test. $this->assertStringMatchesFormat('%d.%d.%d.%d', $this->fm->getMinServerVersion()); }