Exemplo n.º 1
0
 /**
  * Cleanup start event.
  *
  * @param \phpbu\App\Event\Cleanup\Start $event
  */
 public function onCleanupStart(Event\Cleanup\Start $event)
 {
     $cleanup = $event->getConfiguration();
     $this->numCleanups++;
     if ($this->debug) {
         $this->write('cleanup start (' . $cleanup->type . '): ');
     }
 }
Exemplo n.º 2
0
 /**
  * Cleanup start event.
  *
  * @param \phpbu\App\Event\Cleanup\Start $event
  */
 public function onCleanupStart(Event\Cleanup\Start $event)
 {
     $cleanup = $event->getConfiguration();
     $this->numCleanups++;
     if ($this->debug) {
         $this->writeWithAsterisk('cleanup: [' . $cleanup->type . '] ');
     }
 }
Exemplo n.º 3
0
 /**
  * Tests Start::getConfiguration
  */
 public function testGetConfiguration()
 {
     $config = new Configuration\Backup\Cleanup('dummy', false);
     $start = new Start($config);
     $this->assertEquals($config, $start->getConfiguration());
 }