public function it_should_call_api_rename_when_calling_rename() { // given $from = 'from'; $to = 'to'; $this->uploader->shouldReceive('rename')->with($from, $to, array())->once(); // when $this->cloudinary_wrapper->rename($from, $to); }