setRepository() public method

public setRepository ( $repository )
Esempio n. 1
0
 public function testGithubPackage()
 {
     $logger = new Logger();
     $logger->setQuiet();
     $provider = new GithubProvider();
     $provider->setOwner('phalcon');
     $provider->setRepository('cphalcon');
     $provider->setPackageName('phalcon');
     $extensionDownloader = new ExtensionDownloader($logger, new OptionResult());
     $versionList = $extensionDownloader->knownReleases($provider);
     $this->assertNotCount(0, $versionList);
 }
Esempio n. 2
0
 public function testGithubPackage()
 {
     try {
         $logger = new Logger();
         $logger->setQuiet();
         $provider = new GithubProvider();
         $provider->setOwner('phalcon');
         $provider->setRepository('cphalcon');
         $provider->setPackageName('phalcon');
         $extensionDownloader = new ExtensionDownloader($logger, new OptionResult());
         $versionList = $extensionDownloader->knownReleases($provider);
         $this->assertNotCount(0, $versionList);
     } catch (\CurlKit\CurlException $e) {
         $this->markTestIncomplete($e->getMessage());
     }
 }