/** * Crypt start event. * * @param \phpbu\App\Event\Crypt\Start $event */ public function onCryptStart(Event\Crypt\Start $event) { $crypt = $event->getConfiguration(); $this->numCrypts++; if ($this->debug) { $this->write('crypt (' . $crypt->type . '): '); } }
/** * Crypt start event. * * @param \phpbu\App\Event\Crypt\Start $event */ public function onCryptStart(Event\Crypt\Start $event) { $crypt = $event->getConfiguration(); $this->numCrypts++; if ($this->debug) { $this->writeWithAsterisk('crypt: [' . $crypt->type . '] '); } }
/** * Tests Start::getConfiguration */ public function testGetConfiguration() { $config = new Configuration\Backup\Crypt('dummy', false); $start = new Start($config); $this->assertEquals($config, $start->getConfiguration()); }