FormIntegrationTestCase.php 849 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. /*
  3. * This file is part of the Symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Symfony\Component\Form\Test;
  11. use PHPUnit\Framework\TestCase;
  12. use Symfony\Component\Form\FormFactoryInterface;
  13. use Symfony\Component\Form\Forms;
  14. /**
  15. * @author Bernhard Schussek <bschussek@gmail.com>
  16. */
  17. abstract class FormIntegrationTestCase extends TestCase
  18. {
  19. /**
  20. * @var FormFactoryInterface
  21. */
  22. protected $factory;
  23. protected function setUp()
  24. {
  25. $this->factory = Forms::createFormFactoryBuilder()
  26. ->addExtensions($this->getExtensions())
  27. ->getFormFactory();
  28. }
  29. protected function getExtensions()
  30. {
  31. return array();
  32. }
  33. }