minor #34302 [Workflow] Simplified EventDispatcherMock (derrabus)
This PR was merged into the 4.3 branch.
Discussion
----------
[Workflow] Simplified EventDispatcherMock
| Q | A
| ------------- | ---
| Branch? | 4.3
| Bug fix? | no
| New feature? | no
| Deprecations? | no
| Tickets | N/A
| License | MIT
| Doc PR | N/A
This PR simplifies the Workflow component's mock implementation of the event dispatcher by implementing the much simpler contracts interface instead of the full-blown component interface.
Commits
-------
5aee181c83
[Workflow] Simplified EventDispatcherMock.
This commit is contained in:
commit
e4ddc75549
@ -572,7 +572,7 @@ class WorkflowTest extends TestCase
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class EventDispatcherMock implements \Symfony\Component\EventDispatcher\EventDispatcherInterface
|
class EventDispatcherMock implements \Symfony\Contracts\EventDispatcher\EventDispatcherInterface
|
||||||
{
|
{
|
||||||
public $dispatchedEvents = [];
|
public $dispatchedEvents = [];
|
||||||
|
|
||||||
@ -580,32 +580,4 @@ class EventDispatcherMock implements \Symfony\Component\EventDispatcher\EventDis
|
|||||||
{
|
{
|
||||||
$this->dispatchedEvents[] = $eventName;
|
$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)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user