public function testGetProject() { //$this->markTestIncomplete(); try { $proj = new ProjectService(); $p = $proj->get('TEST'); Dumper::dump($p); foreach ($p->components as $c) { echo 'COM : ' . $c->name . "\n"; } } catch (HTTPException $e) { $this->assertTrue(false, $e->getMessage()); } }
protected function execute(InputInterface $input, OutputInterface $output) { // project $nameOrKey = strtoupper($input->getArgument('name')); $field_exclude = explode(',', $input->getOption('field-exclude')); try { $proj = new ProjectService(); //Project $p = $proj->get($nameOrKey); $output->writeln($p->toString($field_exclude)); } catch (JiraException $e) { $output->writeln("Error Occured! " . $e->getMessage()); } }