mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
Remove use of deprecated getMock method
This commit is contained in:
parent
036fc44c25
commit
066351c5b9
42 changed files with 279 additions and 272 deletions
|
@ -45,13 +45,13 @@ class SvnDriverTest extends TestCase
|
|||
*/
|
||||
public function testWrongCredentialsInUrl()
|
||||
{
|
||||
$console = $this->getMock('Composer\IO\IOInterface');
|
||||
$console = $this->getMockBuilder('Composer\IO\IOInterface')->getMock();
|
||||
|
||||
$output = "svn: OPTIONS of 'https://corp.svn.local/repo':";
|
||||
$output .= " authorization failed: Could not authenticate to server:";
|
||||
$output .= " rejected Basic challenge (https://corp.svn.local/)";
|
||||
|
||||
$process = $this->getMock('Composer\Util\ProcessExecutor');
|
||||
$process = $this->getMockBuilder('Composer\Util\ProcessExecutor')->getMock();
|
||||
$process->expects($this->at(1))
|
||||
->method('execute')
|
||||
->will($this->returnValue(1));
|
||||
|
@ -95,7 +95,7 @@ class SvnDriverTest extends TestCase
|
|||
public function testSupport($url, $assertion)
|
||||
{
|
||||
$config = new Config();
|
||||
$result = SvnDriver::supports($this->getMock('Composer\IO\IOInterface'), $config, $url);
|
||||
$result = SvnDriver::supports($this->getMockBuilder('Composer\IO\IOInterface')->getMock(), $config, $url);
|
||||
$this->assertEquals($assertion, $result);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue