Skip to content

Commit 23c68cc

Browse files
committed
fix tests on sf3.3
1 parent 977aff2 commit 23c68cc

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

‎pkg/enqueue-bundle/Tests/Functional/App/TestAsyncListener.php‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,14 @@
22

33
namespace Enqueue\Bundle\Tests\Functional\App;
44

5+
use Symfony\Component\EventDispatcher\Event;
6+
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
7+
58
class TestAsyncListener
69
{
710
public $calls = [];
811

9-
public function onEvent()
12+
public function onEvent(Event $event, $eventName, EventDispatcherInterface $dispatcher)
1013
{
1114
$this->calls[] = func_get_args();
1215
}

‎pkg/enqueue-bundle/Tests/Functional/App/TestAsyncSubscriber.php‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,15 @@
22

33
namespace Enqueue\Bundle\Tests\Functional\App;
44

5+
use Symfony\Component\EventDispatcher\Event;
6+
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
57
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
68

79
class TestAsyncSubscriber implements EventSubscriberInterface
810
{
911
public $calls = [];
1012

11-
public function onEvent()
13+
public function onEvent(Event $event, $eventName, EventDispatcherInterface $dispatcher)
1214
{
1315
$this->calls[] = func_get_args();
1416
}

0 commit comments

Comments
 (0)