TestCase.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. /*
  3. * This file is part of the Symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien.potencier@symfony-project.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\Tests\Component\Form;
  11. use Symfony\Component\Form\FormFactory;
  12. class TestCase extends \PHPUnit_Framework_TestCase
  13. {
  14. protected $theme;
  15. protected $csrfProvider;
  16. protected $validator;
  17. protected $fieldFactory;
  18. protected $factory;
  19. protected function setUp()
  20. {
  21. $this->theme = $this->getMock('Symfony\Component\Form\Renderer\Theme\ThemeInterface');
  22. $this->csrfProvider = $this->getMock('Symfony\Component\Form\CsrfProvider\CsrfProviderInterface');
  23. $this->validator = $this->getMock('Symfony\Component\Validator\ValidatorInterface');
  24. $this->fieldFactory = $this->getMock('Symfony\Component\Form\FieldFactory\FieldFactoryInterface');
  25. $this->factory = new FormFactory($this->theme, $this->csrfProvider, $this->validator, $this->fieldFactory);
  26. }
  27. }