/** * @expectedException \StoreIntegrator\Exceptions\EbayErrorException * @expectedExceptionMessage Very Big Error * @expectedExceptionCode 1234 */ public function testGetOrdersError() { $this->createErrorResponseForOperation('GetOrrdersResponse'); $this->ordersWrapper->getAll(new DateTime('-1 week')); }
/** * @param DateTime $startDate * @param int $page * @param int $perPage * @return mixed */ public function getOrders(DateTime $startDate, $page = 1, $perPage = 100) { return $this->ordersWrapper->getAll($startDate, $page, $perPage); }