public function theXmlFeedShouldBeValidAccordingToTheRelaxNgSchema($filename) { if (is_file($filename)) { $ng = file_get_contents($filename); $this->getDom()->validateNg($ng); } else { throw new \RuntimeException("The relax NG doesn't exist"); } }