[Form] Fix component 'standalone' testsuite

This commit is contained in:
Alexander 2012-06-18 10:08:52 +02:00
parent 0b8b76bfef
commit 8ff2838bb8

View File

@ -23,6 +23,10 @@ class FormBuilderTest extends \PHPUnit_Framework_TestCase
protected function setUp()
{
if (!class_exists('Symfony\Component\EventDispatcher\EventDispatcher')) {
$this->markTestSkipped('The "EventDispatcher" component is not available');
}
$this->dispatcher = $this->getMock('Symfony\Component\EventDispatcher\EventDispatcherInterface');
$this->factory = $this->getMock('Symfony\Component\Form\FormFactoryInterface');
$this->builder = new FormBuilder('name', null, $this->dispatcher, $this->factory);