/** * @static * @return WowApi\Client */ public static function Client() { $client = new \WowApi\Client(); $client->setRegion('us'); $client->setRequest(new Curl($client)); return $client; }
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']); }