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