Example #1
0
 /**
  * @static
  * @return WowApi\Client
  */
 public static function Client()
 {
     $client = new \WowApi\Client();
     $client->setRegion('us');
     $client->setRequest(new Curl($client));
     return $client;
 }
Example #2
0
 public function testMakeRequestToNonExistantPage()
 {
     $client = new \WowApi\Client();
     $client->setRegion('us');
     $client->setRequest(new Curl($client));
     $response = $client->getRequest()->makeRequest('http://us.blizzard.com/404');
     $this->assertEquals(404, $response['headers']['http_code']);
 }