1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 00:22:53 +00:00

VcsRepositories: handle initialize with invalid repository URL (#10525)

This commit is contained in:
Stephan 2022-02-16 08:37:36 +00:00 committed by GitHub
parent 6698317342
commit 3eb12efae5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 63 additions and 5 deletions

View file

@ -218,6 +218,14 @@ class GitBitbucketDriverTest extends TestCase
);
}
public function testInitializeInvalidRepositoryUrl()
{
$this->setExpectedException('\InvalidArgumentException');
$driver = $this->getDriver(array('url' => 'https://bitbucket.org/acme'));
$driver->initialize();
}
public function testSupports()
{
$this->assertTrue(