Example #1
0
 public function testGetConnectionMethod()
 {
     // Mock actions
     $this->connection->shouldReceive('createErrors')->once()->andReturn($this->errors);
     $this->request->shouldReceive('setResponse')->once()->andReturn($this->request);
     // Test start here
     $response = new Response($this->connection, $this->request, $this->responseArray);
     $connection = $response->getConnection();
     $this->assertSame($this->connection, $connection);
 }