We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dd3954f commit 3fee99bCopy full SHA for 3fee99b
Tests/AsyncListenerTest.php
@@ -11,6 +11,7 @@
11
use Enqueue\Psr\PsrProducer;
12
use Enqueue\Test\ClassExtensionTrait;
13
use PHPUnit\Framework\TestCase;
14
+use Symfony\Component\EventDispatcher\Event;
15
use Symfony\Component\EventDispatcher\GenericEvent;
16
17
class AsyncListenerTest extends TestCase
@@ -67,7 +68,7 @@ public function testShouldDoNothingIfSyncModeOn()
67
68
69
$listener->syncMode('fooEvent');
70
- $listener->onEvent(null, 'fooEvent');
71
+ $listener->onEvent(new Event(), 'fooEvent');
72
$listener->onEvent(new GenericEvent(), 'fooEvent');
73
}
74
0 commit comments