public function setUp() { $this->xml = new XMLDom(); $this->xml->loadXMLStrictFile(__DIR__ . "/xml/soap.xml"); }
protected function getXML($path) { $tmpPath = sys_get_temp_dir() . "/wsdl" . md5($path) . ".xml"; $xml = new XMLDom(); if (!$this->options->cache || !is_file($tmpPath) || time() - $this->options->cache > filemtime($tmpPath)) { $cnt = file_get_contents($path); if ($cnt) { file_put_contents($tmpPath, $cnt); } } $xml->loadXMLStrictFile($tmpPath); $xml->documentURI = $path; return $xml; }