/**
  * @param $mmq
  * @param $gamesPlayed
  * @dataProvider extractDataProvider
  */
 public function testExtract($mmq, $gamesPlayed)
 {
     $params = array('mmq' => $mmq, 'gamesPlayed' => $gamesPlayed);
     $result = Ladder\NonRankedParsingService::extract($params);
     $this->assertEquals($mmq, $result->getMatchMakingQueue());
     $this->assertEquals($gamesPlayed, $result->getGamesPlayed());
 }
 /**
  * Extract non-ranked ladder information from an array.
  *
  * @param array $params The parameters with the API response where the data should be extracted from.
  * @return array
  */
 public static function extractNonRankedLadderData($params)
 {
     $nonRankedArray = array();
     foreach ($params['nonRanked'] as $nonRankedEntry) {
         $nonRankedArray[] = NonRankedParsingService::extract($nonRankedEntry);
     }
     return $nonRankedArray;
 }