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); }