public function __construct($attrs = array()) { $this->choices = $attrs['choices']; unset($attrs['choices']); parent::__construct($attrs); }
public function testWidget() { $widget = new widget\Widget(); $this->setExpectedException('\\photon\\form\\widget\\Exception'); $widget->render('foo', 'bar'); }