Example #1
0
 /**
  * Check start event.
  *
  * @param \phpbu\App\Event\Check\Start $event
  */
 public function onCheckStart(Event\Check\Start $event)
 {
     $check = $event->getConfiguration();
     $this->numChecks++;
     if ($this->debug) {
         $this->writeWithAsterisk('check: [' . $check->type . '] ');
     }
 }
Example #2
0
 /**
  * Tests Start::getConfiguration
  */
 public function testGetConfiguration()
 {
     $config = new Configuration\Backup\Check('dummy', 'value');
     $start = new Start($config);
     $this->assertEquals($config, $start->getConfiguration());
 }