Skip to content

Commit 3fee99b

Browse files
committed
fix tests.
1 parent dd3954f commit 3fee99b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Tests/AsyncListenerTest.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
use Enqueue\Psr\PsrProducer;
1212
use Enqueue\Test\ClassExtensionTrait;
1313
use PHPUnit\Framework\TestCase;
14+
use Symfony\Component\EventDispatcher\Event;
1415
use Symfony\Component\EventDispatcher\GenericEvent;
1516

1617
class AsyncListenerTest extends TestCase
@@ -67,7 +68,7 @@ public function testShouldDoNothingIfSyncModeOn()
6768

6869
$listener->syncMode('fooEvent');
6970

70-
$listener->onEvent(null, 'fooEvent');
71+
$listener->onEvent(new Event(), 'fooEvent');
7172
$listener->onEvent(new GenericEvent(), 'fooEvent');
7273
}
7374

0 commit comments

Comments
 (0)