Example #1
0
 public function testGetErrorsMethod()
 {
     // 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, $this->id);
     $errors = $response->getErrors();
     $this->assertInstanceOf('EndyJasmi\\Neo4j\\Response\\ErrorsInterface', $errors);
 }