]>
Commit | Line | Data |
---|---|---|
4f5b44bd NL |
1 | <?php |
2 | ||
3 | /* | |
4 | * This file is part of the Symfony package. | |
5 | * | |
6 | * (c) Fabien Potencier <fabien@symfony.com> | |
7 | * | |
8 | * For the full copyright and license information, please view the LICENSE | |
9 | * file that was distributed with this source code. | |
10 | */ | |
11 | ||
12 | namespace Symfony\Component\Form\Test; | |
13 | ||
14 | use Symfony\Component\Form\Forms; | |
15 | ||
16 | /** | |
17 | * @author Bernhard Schussek <bschussek@gmail.com> | |
18 | */ | |
19 | abstract class FormIntegrationTestCase extends \PHPUnit_Framework_TestCase | |
20 | { | |
21 | /** | |
22 | * @var \Symfony\Component\Form\FormFactoryInterface | |
23 | */ | |
24 | protected $factory; | |
25 | ||
26 | protected function setUp() | |
27 | { | |
28 | if (!class_exists('Symfony\Component\EventDispatcher\EventDispatcher')) { | |
29 | $this->markTestSkipped('The "EventDispatcher" component is not available'); | |
30 | } | |
31 | ||
32 | $this->factory = Forms::createFormFactoryBuilder() | |
33 | ->addExtensions($this->getExtensions()) | |
34 | ->getFormFactory(); | |
35 | } | |
36 | ||
37 | protected function getExtensions() | |
38 | { | |
39 | return array(); | |
40 | } | |
41 | } |