public function testPushWithDefault() { $imp = new Impersonator(); $job = 'Omg\\Doge\\LaunchCommand'; $data = ['omg' => 'whyyoudothis.jpg']; $queue = m::mock(QueueManager::class); $queue->shouldReceive('push')->with($job, $data, 'no no i stay')->once(); $imp->provide($queue); $pusher = $imp->make(QueuePusher::class); $pusher->push($job, $data, null, 'no no i stay'); }
public function testProvideWithString() { $imp = new Impersonator(); $this->setExpectedException(LackOfCoffeeException::class); $imp->provide(ExampleA::class); }