mirror of
https://github.com/composer/composer
synced 2025-05-09 16:42:57 +00:00
Adding Config as parameter to the Driver::supports(), updating all drivers, user and tests.
This commit is contained in:
parent
d8dbcab710
commit
93ebfd54b1
11 changed files with 35 additions and 24 deletions
|
@ -80,10 +80,8 @@ class SvnDriverTest extends \PHPUnit_Framework_TestCase
|
|||
*/
|
||||
public function testSupport($url, $assertion)
|
||||
{
|
||||
if ($assertion === true) {
|
||||
$this->assertTrue(SvnDriver::supports($this->getMock('Composer\IO\IOInterface'), $url));
|
||||
} else {
|
||||
$this->assertFalse(SvnDriver::supports($this->getMock('Composer\IO\IOInterface'), $url));
|
||||
}
|
||||
$config = new Config();
|
||||
$result = SvnDriver::supports($this->getMock('Composer\IO\IOInterface'), $url, $config);
|
||||
$this->assertEquals($assertion, $result);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue