protected function setUp()
{
if (!class_exists('Symfony\\Component\\EventDispatcher\\Event')) {
$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->delegate = $this->getMockBuilder('DMS\\Bundle\\FilterBundle\\Service\\Filter')->disableOriginalConstructor()->getMock();
$this->listener = new DelegatingFilterListener($this->delegate);
$this->message = 'Message';
$this->params = array('foo' => 'bar');
}