/** * 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()); }
/** * 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); }