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