/** * @covers WindowsAzure\ServiceBus\Models\ListOptions::getSkip * @covers WindowsAzure\ServiceBus\Models\ListOptions::setSkip */ public function testGetSetSkip() { // Setup $expected = 'testSkip'; $listOptions = new ListOptions(); // Test $listOptions->setSkip($expected); $actual = $listOptions->getSkip(); // Assert $this->assertEquals($expected, $actual); }
/** * The base method of all the list operations. * * @param ListOptions $listOptions The options for list operation. * @param string $path The path of the list operation. * * @return none */ private function _listOptions($listOptions, $path) { if (is_null($listOptions)) { $listOptions = new ListOptions(); } $httpCallContext = new HttpCallContext(); $httpCallContext->setMethod(Resources::HTTP_GET); $httpCallContext->setPath($path); $httpCallContext->addStatusCode(Resources::STATUS_OK); $top = $listOptions->getTop(); $skip = $listOptions->getSkip(); if (!empty($top)) { $httpCallContext->addQueryParameter(Resources::QP_TOP, $top); } if (!empty($skip)) { $httpCallContext->addQueryParameter(Resources::QP_SKIP, $skip); } return $this->sendContext($httpCallContext); }