public function testElementBasics() { $f = new Form\Element\Text('element-name'); $f->setId('element-id'); $f->setLabel('element-label'); $f->setClass('element-class'); $f->setContainerClass('container-class'); $this->assertTrue($f->getName() == 'elementname'); $this->assertTrue($f->getId() == 'element-id'); $this->assertTrue($f->getLabel() == 'element-label'); $this->assertTrue($f->getClass() == 'element-class'); $this->assertTrue($f->getContainerClass() == 'container-class'); $output = $f->render(); $this->assertTrue(is_string($output)); $this->assertTrue(!empty($output)); $this->assertTrue(strpos($output, 'container-class') !== false); }