public function theXmlFeedShouldBeValidAccordingToTheXsd($filename) { if (is_file($filename)) { $xsd = file_get_contents($filename); $this->getDom()->validateXsd($xsd); } else { throw new \RuntimeException("The xsd doesn't exist"); } }