public function isCsrf()
{
return get_class($this) == 'Pop\\Form\\Element\\Csrf';
}
public function testElementType() { $e = new Element('text', 'email'); $this->assertFalse($e->isCaptcha()); $this->assertFalse($e->isCheckbox()); $this->assertFalse($e->isCsrf()); $this->assertFalse($e->isRadio()); $this->assertFalse($e->isSelect()); $this->assertFalse($e->isTextarea()); }