Example #1
0
 public function testSetRequestMethod()
 {
     $this->connection->shouldReceive('createErrors')->once()->andReturn($this->errors);
     $this->request->shouldReceive('setResponse')->twice()->andReturn($this->request);
     // Test start here
     $response = new Response($this->connection, $this->request, $this->responseArray, $this->id);
     $return = $response->setRequest($this->request);
     $this->assertSame($response, $return);
 }