/**
  * Parse a source folder generating error list and mergin existing errors in this
  * list, if path/file matching is found.
  * In this case one substitution takes place.
  * 
  * @return void
  */
 public function testParseCommonSourcePathSubstitution()
 {
     $test = array(array('complete' => 'src' . DIRECTORY_SEPARATOR . 'XMLGenerator.php', 'path' => '/path/to/my/files', 'file' => 'XMLGenerator.php', 'count_errors' => 10, 'count_notices' => 12), array('complete' => 'Plugins' . DIRECTORY_SEPARATOR . 'ErrorCPD.php', 'path' => '/path/to/my/files', 'file' => 'ErrorCPD.php', 'count_errors' => 10, 'count_notices' => 12));
     $result = $this->_cbErrorHandler->parseSourceDirectory(PHPCB_ROOT_DIR, $test);
     $this->assertEquals('XMLGenerator.php', $result['src' . DIRECTORY_SEPARATOR . 'XMLGenerator.php']['file']);
     $this->assertEquals(10, $result['src' . DIRECTORY_SEPARATOR . 'XMLGenerator.php']['count_errors']);
     $this->assertEquals('ErrorCPD.php', $result['src' . DIRECTORY_SEPARATOR . 'Plugins' . DIRECTORY_SEPARATOR . 'ErrorCPD.php']['file']);
     $this->assertEquals(0, $result['src' . DIRECTORY_SEPARATOR . 'Plugins' . DIRECTORY_SEPARATOR . 'ErrorCPD.php']['count_errors']);
 }