public function testViewCanBeClosure() { $this->events->shouldReceive('fire')->twice(); $this->fb->view(function () { return 'test'; }); $this->assertSame('test', $this->fb->build()); }
/** * @return \Symfony\Component\Form\Form */ public function getForm($values = null) { if (!$values) { $values = Input::old(); } $this->formBuilder->defaults($values); return $this->formBuilder->build(); }