/**
  * Get all the filenames with errors.
  * 
  * @param string $cbXMLFileName The XML file with all information
  * 
  * @return array
  */
 public function getFilesWithErrors($cbXMLFileName)
 {
     $element = $this->cbXMLHandler->loadXML($cbXMLFileName);
     $files = null;
     $path = '';
     foreach ($element->children() as $file) {
         $tmp['complete'] = (string) $file['name'];
         $tmp['file'] = basename($file['name']);
         $tmp['path'] = dirname($file['name']);
         $tmp['count_errors'] = $this->cbXMLHandler->countItems($file->children(), 'severity', 'error');
         $tmp['count_notices'] = $this->cbXMLHandler->countItems($file->children(), 'severity', 'notice');
         $tmp['count_notices'] += $this->cbXMLHandler->countItems($file->children(), 'severity', 'warning');
         $files[] = $tmp;
     }
     return $files;
 }
 /**
  * Test xml loader exception
  *
  * @return void
  *
  * @group XMLHandler
  *
  * @expectedException Exception
  */
 public function testExceptionLoadXML()
 {
     $this->_cbXMLHandler->loadXML('foo.bar');
 }