public function test_Options()
 {
     $migration = ContainerMigration::factory(new Container($this->service), new Container($this->service), array('write.batchLimit' => 50));
     $options = $migration->getOptions();
     $this->assertTrue($options->offsetExists('write.batchLimit'));
     $this->assertEquals($options->get('write.batchLimit'), 50);
 }
示例#2
0
 /**
  * Allows files to be transferred from one container to another.
  *
  * @param Container $old Where you're moving files from
  * @param Container $new Where you're moving files to
  * @return array    Of PUT responses
  */
 public function migrateContainer(Container $old, Container $new, array $options = array())
 {
     $migration = ContainerMigration::factory($old, $new, $options);
     return $migration->transfer();
 }