mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +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
|
@ -104,7 +104,6 @@ class PerforceDriverTest extends \PHPUnit_Framework_TestCase
|
|||
|
||||
public function testHasComposerFile()
|
||||
{
|
||||
$this->setUp();
|
||||
$repoConfig = array(
|
||||
'url' => 'TEST_PERFORCE_URL',
|
||||
'depot' => 'TEST_DEPOT_CONFIG',
|
||||
|
@ -131,17 +130,17 @@ class PerforceDriverTest extends \PHPUnit_Framework_TestCase
|
|||
$result = $driver->hasComposerFile($identifier);
|
||||
$this->assertTrue($result);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Test that supports() simply return false.
|
||||
*
|
||||
*
|
||||
* @covers \Composer\Repository\Vcs\PerforceDriver::supports
|
||||
*
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function testSupportsReturnsFalseNoDeepCheck()
|
||||
{
|
||||
$this->expectOutputString('');
|
||||
$this->assertFalse(PerforceDriver::supports($this->io, 'existing.url'));
|
||||
$this->assertFalse(PerforceDriver::supports($this->io, 'existing.url', $this->config));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue