public function testRenderWithoutElementCheckbox() { $this->setExpectedException('Zend\\Form\\Exception\\InvalidArgumentException'); $this->object->render(new Element\Text('bar')); }