public function testGetMarketsJSON() { $transport = new Transport(API_KEY, 'json'); $result = $transport->getMarkets('en-GB')->parsed; $this->assertTrue(property_exists($result, 'Countries')); $this->assertTrue(count($result->Countries) > 0); }