From 8ff2838bb89a8567d785a12079a35dbe55c898c8 Mon Sep 17 00:00:00 2001 From: Alexander Date: Mon, 18 Jun 2012 10:08:52 +0200 Subject: [PATCH] [Form] Fix component 'standalone' testsuite --- src/Symfony/Component/Form/Tests/FormBuilderTest.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Symfony/Component/Form/Tests/FormBuilderTest.php b/src/Symfony/Component/Form/Tests/FormBuilderTest.php index 89ca355e08..3101541b79 100644 --- a/src/Symfony/Component/Form/Tests/FormBuilderTest.php +++ b/src/Symfony/Component/Form/Tests/FormBuilderTest.php @@ -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);