コード例 #1
0
ファイル: StartTest.php プロジェクト: todiadiyatmo/phpbu
 /**
  * Tests Start::getConfig
  */
 public function testGetConfig()
 {
     $conf = new Configuration('/tmp/foo.xml');
     $conf->setDebug(true);
     $start = new Start($conf);
     $config = $start->getConfiguration();
     $this->assertEquals(true, $config->getDebug());
 }
コード例 #2
0
ファイル: PrinterCli.php プロジェクト: imjerrybao/phpbu
 /**
  * phpbu start event.
  *
  * @param \phpbu\App\Event\App\Start $event
  */
 public function onPhpbuStart(Event\App\Start $event)
 {
     $configuration = $event->getConfiguration();
     $this->write(Version::getVersionString() . PHP_EOL . PHP_EOL . 'Configuration read from ' . $configuration->getFilename() . PHP_EOL . PHP_EOL);
 }