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