/** * Tests Start::getConfiguration */ public function testGetConfiguration() { $config = new Configuration\Backup\Sync('dummy', false); $start = new Start($config); $this->assertEquals($config, $start->getConfiguration()); }
/** * Sync start event. * * @param \phpbu\App\Event\Sync\Start $event */ public function onSyncStart(Event\Sync\Start $event) { $sync = $event->getConfiguration(); $this->numSyncs++; if ($this->debug) { $this->writeWithAsterisk('sync: [' . $sync->type . '] '); } }
/** * Sync start event. * * @param \phpbu\App\Event\Sync\Start $event */ public function onSyncStart(Event\Sync\Start $event) { $sync = $event->getConfiguration(); $this->numSyncs++; if ($this->debug) { $this->write('sync start (' . $sync->type . '): '); } }