mirror of
https://github.com/composer/composer
synced 2025-05-10 09:02:59 +00:00
Get rid of all the ->at() mock invocations
This commit is contained in:
parent
095c36ecf8
commit
ffd62795bc
56 changed files with 746 additions and 921 deletions
|
@ -301,9 +301,9 @@ class BitbucketTest extends TestCase
|
|||
public function testUsernamePasswordAuthenticationFlow()
|
||||
{
|
||||
$this->io
|
||||
->expects($this->at(0))
|
||||
->expects($this->atLeastOnce())
|
||||
->method('writeError')
|
||||
->with($this->message)
|
||||
->withConsecutive([$this->message])
|
||||
;
|
||||
|
||||
$this->io->expects($this->exactly(2))
|
||||
|
@ -469,7 +469,7 @@ class BitbucketTest extends TestCase
|
|||
|
||||
public function testAuthorizeOAuthWithoutAvailableGitConfigToken()
|
||||
{
|
||||
$process = new ProcessExecutorMock;
|
||||
$process = $this->getProcessExecutorMock();
|
||||
$process->expects(array(), false, array('return' => -1));
|
||||
|
||||
$bitbucket = new Bitbucket($this->io, $this->config, $process, $this->httpDownloader, $this->time);
|
||||
|
@ -479,7 +479,7 @@ class BitbucketTest extends TestCase
|
|||
|
||||
public function testAuthorizeOAuthWithAvailableGitConfigToken()
|
||||
{
|
||||
$process = new ProcessExecutorMock;
|
||||
$process = $this->getProcessExecutorMock();
|
||||
|
||||
$bitbucket = new Bitbucket($this->io, $this->config, $process, $this->httpDownloader, $this->time);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue