public function testHandler() { $this->assertTrue($this->handler->verifyAccessToken() instanceof stdClass); $this->assertTrue($this->handler->tokenDecode() instanceof stdClass); $this->assertTrue(is_array($this->handler->getMarketTypes())); $this->assertTrue(is_array($this->handler->getMarketTypeHrefs())); $this->assertTrue(is_array($this->handler->getRegions())); $this->assertTrue($this->handler->getRegion(10000002) instanceof stdClass); $this->assertTrue(is_array($this->handler->getConstellationHrefs())); $this->assertTrue($this->handler->getConstellation(21000316) instanceof stdClass); $this->assertTrue(is_array($this->handler->getSolarSystemHrefs())); $this->assertTrue($this->handler->getSolarSystem(31000054) instanceof stdClass); $this->assertTrue($this->handler->getMarketOrders(34, 10000002) instanceof stdClass); $this->assertTrue(is_array($this->handler->getMarketHistory(34, 10000002))); $this->assertTrue(is_array($this->handler->getIndustrySystems())); $this->assertTrue(is_array($this->handler->getMarketPrices())); $this->assertTrue(is_array($this->handler->getIndustryFacilities())); $this->assertTrue(is_array($this->handler->getItemGroups())); $this->assertTrue($this->handler->getItemGroup(40) instanceof stdClass); $this->assertTrue(is_array($this->handler->getAlliances())); $this->assertTrue($this->handler->getAlliance(99000652) instanceof stdClass); $this->assertTrue(is_array($this->handler->getItemTypes())); $this->assertTrue($this->handler->getType(35) instanceof stdClass); $this->assertTrue(is_array($this->handler->getItemCategories())); $this->assertTrue($this->handler->getItemCategory(5) instanceof stdClass); $this->assertTrue(is_array($this->handler->getMarketGroups())); $this->assertTrue($this->handler->getMarketGroup(2) instanceof stdClass); $this->assertTrue(is_array($this->handler->getMarketGroupTypes(2))); $this->assertTrue(is_array($this->handler->getTournaments())); $this->assertTrue($this->handler->getWar(1) instanceof stdClass); $this->assertTrue($this->handler->getKillmail('http://public-crest.eveonline.com/killmails/30290604/787fb3714062f1700560d4a83ce32c67640b1797/') instanceof stdClass); }
/** * Fetches the data from CREST. * * @param \iveeCrest\EndpointHandler $eph to be used * * @return array */ protected static function getData(EndpointHandler $eph) { //we dont set the cache flag because the data normally won't be read again return $eph->getIndustryFacilities(false); }