public function testMissingXMLNodesReturnNull()
 {
     $xmlFile = $this->getResourcePath('Rules/Empty.xml');
     $this->assertFileExists($xmlFile);
     $config = new Config(simplexml_load_file($xmlFile));
     $this->assertNull($config->ruleSet());
 }
 /**
  * Add pattern to exclude files.
  *
  * @param Config          $config
  * @param AbstractWrapper $latestWrapper
  * @param AbstractWrapper $previousWrapper
  */
 protected function appendIgnorePattern($config, $latestWrapper, $previousWrapper)
 {
     $latestWrapper->setFilter($config->filter());
     $previousWrapper->setFilter($config->filter());
 }