Example #1
0
 public function testGetFantasyPlayerStats()
 {
     $file = file_get_contents('./tests/Responses/getFantasyPlayerStats.json');
     $this->mockHandler->append(new Response('200', [], $file));
     $response = $this->client->getFantasyPlayerStats(new \Dotapi2\Filters\FantasyPlayerStats(4266, null, null, null, null, 87278757));
     $this->assertArraySubset(json_decode($file, true), $response->getJson());
 }