0 follower

Final Class Yiisoft\Yii\Testing\ResponseGrabber

InheritanceYiisoft\Yii\Testing\ResponseGrabber

Method Details

Hide inherited methods

getResponse() public method

public Yiisoft\Yii\Testing\ResponseAccessor getResponse ( )

                public function getResponse(): ResponseAccessor
{
    return $this->response ?? throw new RuntimeException('Response is null');
}

            
setResponse() public method

public void setResponse ( \Psr\Http\Message\ResponseInterface|null $response )
$response \Psr\Http\Message\ResponseInterface|null

                public function setResponse(?ResponseInterface $response): void
{
    $this->response = $response === null ? null : new ResponseAccessor($response);
}