errorMessage() public method

prints error message
public errorMessage ( ) : string
return string
 /**
  * @test
  */
 public function testErrorMessage()
 {
     $msg = $this->object->errorMessage();
     $this->assertContains('Error on line', $msg);
 }