Exemplo n.º 1
0
 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');
 }
Exemplo n.º 2
0
 public function testProvideWithString()
 {
     $imp = new Impersonator();
     $this->setExpectedException(LackOfCoffeeException::class);
     $imp->provide(ExampleA::class);
 }