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