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