コード例 #1
0
ファイル: PrinterCli.php プロジェクト: todiadiyatmo/phpbu
 /**
  * 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 . '): ');
     }
 }
コード例 #2
0
ファイル: PrinterCli.php プロジェクト: imjerrybao/phpbu
 /**
  * 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 . '] ');
     }
 }
コード例 #3
0
ファイル: StartTest.php プロジェクト: todiadiyatmo/phpbu
 /**
  * Tests Start::getConfiguration
  */
 public function testGetConfiguration()
 {
     $config = new Configuration\Backup\Crypt('dummy', false);
     $start = new Start($config);
     $this->assertEquals($config, $start->getConfiguration());
 }