public function testRepopulateFromModel() { Former::populate((object) array('foo' => 0)); $radios = Former::radios('foo')->radios('foo', 'bar')->__toString(); $matcher = $this->cgm($this->rc('foo', 'Foo', 0) . $this->r('foo2', 'Bar', 1)); $this->assertEquals($matcher, $radios); }
public function testMultipleCustom() { $radios = Former::radios('foo')->radios(array('foo' => 'Foo', 'bar' => 'Bar'))->__toString(); $matcher = $this->cg($this->r('foo', 'Foo', 0) . $this->rx('bar', 'Bar')); $this->assertEquals($matcher, $radios); }