setErrorPre() public method

Set error pre-display
public setErrorPre ( boolean $pre = true ) : Element
$pre boolean
return Element
Exemplo n.º 1
0
 public function testRender()
 {
     $e = new Element('text', 'email');
     $element = $e->render(true);
     $e->setErrorPre(true);
     $element = $e->render(true);
     ob_start();
     $e->output();
     $output = ob_get_clean();
     $this->assertContains('<input', $element);
     $this->assertContains('<input', $output);
 }