public function testGetSnapshotInterval() { $config = new Configuration(array('snapshot_interval' => 50)); $this->assertEquals(50, $config->getSnapshotInterval()); }
/** * Construct * * @param Configuration $config */ public function __construct(Configuration $config) { $this->adapter = $config->getAdapter(); $this->lookupSnapshots = $config->isSnapshotLookup(); $this->autoGenerateSnapshots = $config->isAutoGenerateSnapshots(); $this->snapshotInterval = $config->getSnapshotInterval(); $this->repositoryMap = $config->getRepositoryMap(); $this->eventDispatcher = $config->getEventDispatcher(); if ($this->autoGenerateSnapshots) { $this->lookupSnapshots = true; } }