New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(possibly) update RootPackageLoaderTest #1508
Comments
|
but this is not yet part of a released version of the library, right ? |
|
It looks like v1.2.3 was released one day after merging the fix: https://github.com/sebastianbergmann/phpunit-mock-objects/commits/1.2.3 |
|
Ok, so it is fixed when using PHPUnit 3.7.13. Maybe we should wait until Travis uses this version ? |
|
No need to rush, I just wanted to post a little reminder because I was poking around the Composer source ;-) |
|
I took a look at this today with PHPUnit 3.7.22 and I don't see that this is working. I could be totally wrong on how this was intended to work, though? I tried: <?php
$processExecutor = $this->getMockBuilder('\\Composer\\Util\\ProcessExecutor')
->disableOriginalConstructor()
->getMock();
$self = $this;
$processExecutor
->expects($this->once())
->method('execute')
->will($this->returnCallback(function ($command, &$output = null, $cwd = null) use ($commitHash, $self) {
$self->assertStringStartsWith('git branch', $command);
$output = "* (no branch) $commitHash Commit message\n";
return 0;
}));I get: So the output is not being set correctly. Based on the notes for PHPUnit 3.7 it looks like cloning the params should be off by default. I tried both |
|
@stof is this still applicable? |
Inside the
RootPackageLoaderTest, the issue sebastianbergmann/phpunit-mock-objects#81 has been referenced:The issue has been closed 8 days ago, so maybe the test can be cleaned up.
The text was updated successfully, but these errors were encountered: