public function testGetMarketSummary() { $summary = $this->client->getMarketSummary(Currency::XBT, Currency::USD); $this->assert($summary, instance_of, '\\IndependentReserve\\Object\\MarketSummary'); $this->verify($summary->getDayHighestPrice(), is_greater_than, 0); $this->verify($summary->getDayLowestPrice(), is_greater_than, 0); $this->verify($summary->getDayAveragePrice(), is_between, $summary->getDayLowestPrice(), 'and', $summary->getDayHighestPrice()); $this->verify($summary->getDayVolumeXbt(), is_greater_than, 0); $this->verify($summary->getCurrentLowestOfferPrice(), is_greater_than, 0); $this->verify($summary->getCurrentHighestBidPrice(), is_greater_than, 0); $this->verify($summary->getLastPrice(), is_greater_than, 0); $this->verify($summary->getPrimaryCurrencyCode(), equals, Currency::XBT); $this->verify($summary->getSecondaryCurrencyCode(), equals, Currency::USD); $this->verify(date, $summary->getCreatedTimestamp(), is_after, time() - 5); }