Exemple #1
0
 /**
  * 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 . '): ');
     }
 }
Exemple #2
0
 /**
  * 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 . '] ');
     }
 }
Exemple #3
0
 /**
  * Tests Start::getConfiguration
  */
 public function testGetConfiguration()
 {
     $config = new Configuration\Backup('dummy', false);
     $start = new Start($config);
     $this->assertEquals($config, $start->getConfiguration());
 }