spec\Newscoop\Gimme\PaginatorServiceSpec::it_should_set_partial_response PHP Метод

it_should_set_partial_response() публичный Метод

public it_should_set_partial_response ( PartialResponse $partialResponse )
$partialResponse Newscoop\Gimme\PartialResponse
    function it_should_set_partial_response(PartialResponse $partialResponse)
    {
        $this->setPartialResponse($partialResponse)->shouldReturn($this);
        $this->getPartialResponse()->shouldReturn($partialResponse);
        $newPartialResponse = new PartialResponse();
        $newPartialResponse->setFields('id,name,subject');
        $this->setPartialResponse($newPartialResponse)->shouldReturn($this);
        $this->getPartialResponse()->shouldReturn($newPartialResponse);
    }