public function testHasErrors() { $result = new \r8\Validator\ErrorList(); $this->assertFalse($result->hasErrors()); $result->addError("Test Error"); $this->assertTrue($result->hasErrors()); $result->clearErrors(); $this->assertFalse($result->hasErrors()); }