/**
  * @test
  */
 public function shouldAllowGetPreviouslySetRequest()
 {
     $exception = new HttpException();
     $exception->setRequest($expectedRequest = new Request());
     $this->assertSame($expectedRequest, $exception->getRequest());
 }
示例#2
0
 /**
  * @test
  */
 public function shouldAllowGetPreviouslySetRequest()
 {
     $exception = new HttpException();
     $exception->setRequest($expectedRequest = $this->getMock('Psr\\Http\\Message\\RequestInterface'));
     $this->assertSame($expectedRequest, $exception->getRequest());
 }