예제 #1
0
 /**
  * Set up our test fixture.
  *
  * Expect a service URL something like this:
  *   http://api.nfldata.apiphany.com/developer/json/PlayerGameStatsByPlayerID/2013REG/13/10974?key=000aaaa0-a00a-0000-0a0a-aa0a00000000
  */
 public static function setUpBeforeClass()
 {
     static::$sClient = new MockClient($_SERVER['FANTASY_DATA_API_KEY'], Subscription::KEY_DEVELOPER);
     /** \GuzzleHttp\Command\Model */
     static::$sClient->PlayerGameStatsByPlayerID(['Season' => '2013REG', 'Week' => 13, 'PlayerID' => '10974']);
     static::$sResponse = static::$sClient->mHistory->getLastResponse();
     static::$sEffectiveUrl = static::$sResponse->getEffectiveUrl();
     static::$sUrlFragments = explode('/', static::$sEffectiveUrl);
 }