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