Skip to content

Commit d172024

Browse files
committed
[Workflow] Simplified EventDispatcherMock.
1 parent de36321 commit d172024

File tree

1 file changed

+1
-29
lines changed

1 file changed

+1
-29
lines changed

Tests/WorkflowTest.php

+1-29
Original file line numberDiff line numberDiff line change
@@ -572,40 +572,12 @@ public function testGetEnabledTransitionsWithSameNameTransition()
572572
}
573573
}
574574

575-
class EventDispatcherMock implements \Symfony\Component\EventDispatcher\EventDispatcherInterface
575+
class EventDispatcherMock implements \Symfony\Contracts\EventDispatcher\EventDispatcherInterface
576576
{
577577
public $dispatchedEvents = [];
578578

579579
public function dispatch($event, string $eventName = null)
580580
{
581581
$this->dispatchedEvents[] = $eventName;
582582
}
583-
584-
public function addListener($eventName, $listener, $priority = 0)
585-
{
586-
}
587-
588-
public function addSubscriber(\Symfony\Component\EventDispatcher\EventSubscriberInterface $subscriber)
589-
{
590-
}
591-
592-
public function removeListener($eventName, $listener)
593-
{
594-
}
595-
596-
public function removeSubscriber(\Symfony\Component\EventDispatcher\EventSubscriberInterface $subscriber)
597-
{
598-
}
599-
600-
public function getListeners($eventName = null)
601-
{
602-
}
603-
604-
public function getListenerPriority($eventName, $listener)
605-
{
606-
}
607-
608-
public function hasListeners($eventName = null)
609-
{
610-
}
611583
}

0 commit comments

Comments
 (0)