Пример #1
0
 /**
  * test get credentials.
  */
 public function testGetCredentials()
 {
     $this->createsampleRCFile();
     $parser = new LlumRCParser(new LlumRCFile());
     $credentials = $parser->getCredentials();
     $this->assertTrue(is_array($credentials));
     $this->assertEquals('acacha', $credentials[0]);
     $this->assertEquals('abcdefgh12345678', $credentials[1]);
 }
Пример #2
0
 /**
  * Get credentials.
  *
  * @param OutputInterface $input
  * @return array
  */
 public function getCredentials(OutputInterface $output)
 {
     $credentials = $this->parser->getCredentials();
     if (is_null($credentials)) {
         $this->showErrorRunLlumInitFirst($output, "Credentials");
     }
     return $credentials;
 }
Пример #3
0
 /**
  * Get github username from llum config.
  *
  * @param OutputInterface $output
  * @return array
  */
 protected function getGithubUserNameFromConfig(OutputInterface $output)
 {
     $username = $this->parser->getGitHubUsername();
     if (is_null($username)) {
         $this->showErrorRunLlumInitFirst($output, 'username');
     }
     return $username;
 }