/**
  * Given an multidimensional array it'll find the blame for specific files and lines
  *
  * @param  array $files The result of self::_findLines
  * @return array
  */
 public static function findBlames($files)
 {
     $blames = array();
     foreach ($files as $file) {
         $blames[] = Blame::find('all', array('conditions' => array('file' => $file['name'], 'lines' => $file['lines'])));
     }
     return $blames;
 }
 public function testGroupByNameHash()
 {
     $file = dirname(dirname(dirname(dirname(dirname(dirname(__DIR__)))))) . '/mocks/mock.txt';
     $blames = Blame::find('all', array('conditions' => array('file' => $file, 'lines' => array(1, 2)), 'groupBy' => array('name', 'hash')))->to('array');
     $this->assertCount(2, $blames);
     // Two groups
 }