/** * isChecked * * @param Option $option * * @return bool */ protected function isChecked(Option $option) { return $option->getValue() == $this->getChecked(); }
/** * Method to test getValue(). * * @return void * * @covers Windwalker\Html\Option::getValue */ public function testGetAndSetValue() { $this->instance->setValue('sunflower'); $this->assertEquals('sunflower', $this->instance->getValue()); }
/** * isChecked * * @param Option $option * * @return bool */ protected function isChecked(Option $option) { return in_array($option->getValue(), (array) $this->getChecked()); }