public function setUp()
 {
     $this->csrf = $this->prophesize('Symfony\\Component\\Security\\Csrf\\CsrfTokenManagerInterface');
     $token = new CsrfToken('form', 'foo');
     $this->csrf->getToken('form')->willReturn($token);
     $builder = new TranslatorBuilder();
     $builder->setLocale('nl_NL');
     $this->translator = $builder->build();
 }
 /**
  * Register the service provider.
  *
  * @return void
  */
 public function register()
 {
     $this->package('form', 'form');
     App::bind('Symfony\\Component\\Form\\FormBuilder', function ($app) {
         $csrf = new DefaultCsrfProvider('change this token');
         $translator_builder = new TranslatorBuilder();
         $translator_builder->setLocale('nl_NL');
         // Uncomment if you want a non-english locale
         $builder = new Builder();
         $builder->setCsrfProvider($csrf);
         $builder->setTranslator($translator_builder->build());
         return $builder->buildFormFactory()->createBuilder();
     });
 }