protected function initialize(InputInterface $input, OutputInterface $output) { $helper = new ComposerConfig(); $file = $this->getApplication()->getProjectRootDir() . '/composer.json'; $helper->setComposerFile($file); $config = $helper->getRMTConfigSection(); if (!$config) { return; } $this->writeBigTitle('Current: ' . $helper->getProjectName() . ' ' . $helper->getCurrentVersion()); $this->writeEmptyLine(); }
public function testGetProjectName() { $this->assertEquals('bonndan/ReleaseManager', $this->helper->getProjectName()); }