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:
parent
6698317342
commit
3eb12efae5
5 changed files with 63 additions and 5 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue