public function testMultipleObjectActions() { $actions = Former::actions(Former::submit('submit'), Former::reset('reset')); $matcher = '<div class="form-actions">' . '<input class="btn" type="submit" value="Submit"> ' . '<input class="btn" type="reset" value="Reset">' . '</div>'; $this->assertEquals($matcher, $actions); }
public function testActions() { $actions = Former::actions('foo', 'bar'); $matcher = '<div class="form-actions">foo bar</div>'; $this->assertEquals($matcher, $actions); }