コード例 #1
0
ファイル: TagTypeTest.php プロジェクト: silvestra/form
 /**
  * {@inheritdoc}
  */
 protected function setUp()
 {
     parent::setUp();
     $this->factory = Forms::createFormFactoryBuilder()->addTypeExtension($this->createValidatorExtension())->addTypeGuesser($this->getMockValidatorTypeGuesser())->addTypes(array(new TagType()))->getFormFactory();
     $this->builder = $this->createFormBuilder();
 }
コード例 #2
0
ファイル: KeyValueTypeTest.php プロジェクト: silvestra/form
 /**
  * {@inheritdoc}
  */
 protected function setUp()
 {
     parent::setUp();
     $this->factory = Forms::createFormFactoryBuilder()->addTypes(array(new KeyValueRowType(), new KeyValueType()))->getFormFactory();
     $this->builder = $this->createFormBuilder();
 }