Ejemplo n.º 1
0
 /**
  * Given: An invalid developer API key
  * When: API is queried for SeasonLeagueLeaders, Season 2013REG, Position WR, Column FantasyPoints
  * Then: Expect a 401 response in the form of a Guzzle CommandClientException
  *
  * @group Integration
  * @small
  *
  * @expectedException \GuzzleHttp\Command\Exception\CommandClientException
  */
 public function testInvalidAPIKey()
 {
     $client = new DebugClient('invalid_api_key', Subscription::KEY_DEVELOPER);
     /** @var \GuzzleHttp\Command\Model $result */
     $client->SeasonLeagueLeaders(['Season' => '2013REG', 'Position' => 'WR', 'Column' => 'FantasyPoints']);
 }