Ejemplo n.º 1
0
 function it_should_call_the_image_upload_with_correct_params(Mink $mink, Session $session, Local $localImageDriver)
 {
     $mink->getSession()->willReturn($session);
     $session->getScreenshot()->willReturn('binary-image');
     $localImageDriver->upload('binary-image', 'test.png')->shouldBeCalled();
     $this->takeScreenshot('test.png');
 }
 function it_should_call_the_image_upload_with_correct_params(Local $localDriver)
 {
     $localDriver->upload('binary-image', 'test.png')->shouldBeCalled();
     $this->upload('binary-image', 'test.png');
 }