/**
  * Test if proper file is extrected from XML file.
  * 
  * SimpleXMLObject is generated by MockObject.
  * 
  * @return void
  */
 public function testGetFilesWithErrors()
 {
     $this->_mockXMLHandler->expects($this->once())->method('loadXML')->with($this->equalTo(self::$_cbXMLFile))->will($this->returnValue(simplexml_load_file(self::$_cbXMLFile)));
     $this->_mockXMLHandler->expects($this->atLeastOnce())->method('countItems')->will($this->returnValue(rand(1, 100)));
     $files = $this->_cbErrorHandler->getFilesWithErrors(self::$_cbXMLFile);
     $this->assertTrue(5 === count($files[0]));
     $this->assertEquals($this->_fileName, $files[0]['complete']);
 }