hasErrors() public method

public hasErrors ( ) : boolean
return boolean
 public function testHasErrors()
 {
     $this->assertFalse($this->batchResponse->hasErrors());
     $batchResponse = new BatchResponse($this->getSimpleXMLElement("batch-response-error"));
     $this->assertTrue($batchResponse->hasErrors());
 }