public function testUpdate()
{
$snippet = $this->snippetFromMethod(Bucket::class, 'update');
$snippet->addLocal('bucket', $this->bucket);
$this->connection->patchBucket(Argument::that(function ($arg) {
if ($arg['logging']['logBucket'] !== 'myBucket') {
return false;
}
if ($arg['logging']['logObjectPrefix'] !== 'prefix') {
return false;
}
return true;
}))->shouldBeCalled()->willReturn('foo');
$this->bucket->setConnection($this->connection->reveal());
$res = $snippet->invoke();
}