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