public function render($attributes = null) { $params = $this->prepareAttributes($attributes); $params[0] = $this->getName(); $params[1] = $this->getOptions(); $params[2] = $this->getRenderCallback(); return RadiosetTag::RadiosetField($params); }
protected function assertRadiosetWorks($name, $data) { $result = Radioset::RadiosetField($name, $data); $this->assertTrue(is_string($result), "Result needs to be a sting, '" . gettype($result) . "' given instead"); foreach ($data as $value => $label) { $this->assertContainsRadio($result, $name, $value); } }