public function setUp() { parent::setUp(); $app = $this->createApplication(); // CSRF tokenを無効にしてFormを作成 $this->form = $app['form.factory']->createBuilder('form', null, array('csrf_protection' => false))->add('zip', 'zip')->getForm(); }