예제 #1
0
 /**
  * Gets a Killmail. The domain of the passed href is adapted to the currently used CREST root, so all hrefs in the
  * response are relative to that.
  *
  * @param string $killmailHref in the form 
  * http://public-crest.eveonline.com/killmails/30290604/787fb3714062f1700560d4a83ce32c67640b1797/
  *
  * @return stdClass
  */
 public function getKillmail($killmailHref)
 {
     return $this->client->getEndpoint($this->client->getRootEndpointUrl() . ltrim(parse_url($killmailHref, PHP_URL_PATH), '/'), true, static::KILLMAIL_REPRESENTATION);
 }
예제 #2
0
 public function testClient()
 {
     $this->assertTrue($this->client->getRootEndpoint() instanceof stdClass);
     $this->assertTrue($this->client->getCache() instanceof ICache);
     $this->assertTrue($this->client->getOptions($this->client->getRootEndpointUrl()) instanceof stdClass);
 }