public setErrorPre ( boolean $pre = true ) : |
||
$pre | boolean | |
Результат |
public function setErrorPre($pre = true)
{
$this->errorDisplay['pre'] = (bool) $pre;
return $this;
}
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); }