public function testClearErrors() { $e = new Element('text', 'email'); $e->clearErrors(); $errors = $e->getErrors(); $this->assertEquals(0, count($errors)); }