Skip to content

Commit

Permalink
Replace call_user_func_array with splat operator
Browse files Browse the repository at this point in the history
  • Loading branch information
Max Brokman committed Feb 17, 2017
1 parent 7cb2676 commit 21744ad
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tests/WorkerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,7 @@ protected function prepareToRunJob($job)
$this->queueManager->shouldReceive('connection')->andReturn($this->queue);
$this->queueManager->shouldReceive('getName')->andReturn('test');

$popExpectation = $this->queue->shouldReceive('pop');

// Allows the expectation to return a difference job each time.
call_user_func_array([$popExpectation, 'andReturn'], $jobs);
$this->queue->shouldReceive('pop')->andReturn(...$jobs);
}

public function testExtendsLaravelWorker()
Expand Down

0 comments on commit 21744ad

Please sign in to comment.