public function testSupports() { $this->assertTrue(GitBitbucketDriver::supports($this->io, $this->config, 'https://bitbucket.org/user/repo.git')); $this->assertFalse(GitBitbucketDriver::supports($this->io, $this->config, 'git@bitbucket.org:user/repo.git')); $this->assertFalse(GitBitbucketDriver::supports($this->io, $this->config, 'https://github.com/user/repo.git')); }
/** * {@inheritdoc} */ public function initialize() { parent::initialize(); $this->cache = new Cache($this->io, $this->config->get('cache-repo-dir') . '/' . $this->originUrl . '/' . $this->owner . '/' . $this->repository); }