Example #1
0
 /**
  * When a response is created, with pagination, it should copy the pagination to the new instance.
  * 
  * @return [type] [description]
  */
 public function testCreatesInstanceFromExistingResponseAlsoAddsPaginationToResponse()
 {
     $existing = new Response();
     $pagination = new Pagination(30, 50, 0);
     $existing->setPagination($pagination);
     $response = Response::makeFromExisting($existing);
     $this->assertTrue($response->hasPagination());
     $this->assertInstanceOf('\\Peakfijn\\GetSomeRest\\Http\\Pagination', $response->getPagination());
 }