Skip to content

Commit f54eef7

Browse files
committed
Merge branch '5.4' into 6.2
* 5.4: Fix some Composer keywords [FrameworkBundle] Rename limiter’s `strategy` to `policy` in XSD [VarDumper] Fixed dumping of CutStub Fix test Change limit argument from string to integer. [Messenger] Fix `evaluate()` calls in `WorkerTest` [Mailer] STDOUT blocks infinitely under Windows when STDERR is filled
2 parents 1e6726d + 5763e92 commit f54eef7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/WorkerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ public function testWorkerDispatchesEventsOnSuccess()
206206
$eventDispatcher->expects($this->exactly(5))
207207
->method('dispatch')
208208
->willReturnCallback(function ($event) use (&$series) {
209-
array_shift($series)->evaluate($event, '', true);
209+
array_shift($series)->evaluate($event);
210210

211211
if ($event instanceof WorkerRunningEvent) {
212212
$event->getWorker()->stop();
@@ -260,7 +260,7 @@ public function testWorkerDispatchesEventsOnError()
260260
$eventDispatcher->expects($this->exactly(5))
261261
->method('dispatch')
262262
->willReturnCallback(function ($event) use (&$series) {
263-
array_shift($series)->evaluate($event, '', true);
263+
array_shift($series)->evaluate($event);
264264

265265
if ($event instanceof WorkerRunningEvent) {
266266
$event->getWorker()->stop();

0 commit comments

Comments
 (0)