コード例 #1
0
 public function testMissingXMLNodesReturnNull()
 {
     $xmlFile = $this->getResourcePath('Rules/Empty.xml');
     $this->assertFileExists($xmlFile);
     $config = new Config(simplexml_load_file($xmlFile));
     $this->assertNull($config->ruleSet());
 }
コード例 #2
0
 /**
  * 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());
 }