public function testRenderFormTagProducesValidXhtml() { $form = new Form('author', new Author(), $this->validator); $this->assertEquals('<form action="url" method="post">', $form->renderFormTag('url')); }