/**
* Tests that a clone of the provider's options are passed to ProviderResource::fetch().
*/
public function testFetchWithOptions()
{
$this->setOptions($options = \Mockery::mock(EncapsulatedOptions::class));
$this->provider->fetch(MockFactory::mockResource($this->provider)->shouldReceive('fetch')->with($this->connector, \Mockery::on(function (EncapsulatedOptions $argument) use($options) {
self::assertNotSame($options, $argument);
return get_class($options) === get_class($argument);
}))->getMock());
}