public function testMoveShouldCallOnceClientMoveObject() { $client = $this->mockClient(array('moveObject' => function ($expectation) { $expectation->once(); })); $object = new TestObject($client, 'file.ffffffffffffffff.FFFFFFFFFFFFFFFF!123'); $object->move('path/to/file'); }