public function testGetShardStatus() { $this->client->shouldReceive('baseUrl')->with('http://status.leagueoflegends.com/')->once(); $this->client->shouldReceive('request')->with('shards/euw', ['api_key' => 'key'])->once()->andReturn(file_get_contents('tests/Json/shardstatus.euw.json')); $api = new Api('key', $this->client); $api->setRegion('euw'); $shardStatus = $api->status()->shardStatus(); $this->assertTrue($shardStatus instanceof \LeagueWrap\Dto\ShardStatus); }
public function testStatus() { $api = new Api('key'); $status = $api->status(); $this->assertTrue($status instanceof LeagueWrap\Api\Status); }