[Workflow] Simplified EventDispatcherMock.

This commit is contained in:
Alexander M. Turek 2019-11-08 23:20:19 +01:00
parent bc726f7d50
commit 5aee181c83
1 changed files with 1 additions and 29 deletions

View File

@ -572,7 +572,7 @@ class WorkflowTest extends TestCase
}
}
class EventDispatcherMock implements \Symfony\Component\EventDispatcher\EventDispatcherInterface
class EventDispatcherMock implements \Symfony\Contracts\EventDispatcher\EventDispatcherInterface
{
public $dispatchedEvents = [];
@ -580,32 +580,4 @@ class EventDispatcherMock implements \Symfony\Component\EventDispatcher\EventDis
{
$this->dispatchedEvents[] = $eventName;
}
public function addListener($eventName, $listener, $priority = 0)
{
}
public function addSubscriber(\Symfony\Component\EventDispatcher\EventSubscriberInterface $subscriber)
{
}
public function removeListener($eventName, $listener)
{
}
public function removeSubscriber(\Symfony\Component\EventDispatcher\EventSubscriberInterface $subscriber)
{
}
public function getListeners($eventName = null)
{
}
public function getListenerPriority($eventName, $listener)
{
}
public function hasListeners($eventName = null)
{
}
}