We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
After upgrading to PHPUnit 3.7.1 some of my test fail because of the __phpunit_id attribute. Test code:
$a = $this->getMock('\stdClass'); $b = $this->getMock('\stdClass'); $this->assertEquals($a, $b);
In PHPUnit 3.6 this code works, in 3.7.1 the output is:
Failed asserting that two objects are equal. --- Expected +++ Actual @@ @@ Mock_stdClass_f9d48dc3 Object ( '__phpunit_invocationMocker' => null - '__phpunit_id' => 'Mock_stdClass_f9d48dc3#0' + '__phpunit_id' => 'Mock_stdClass_f9d48dc3#1' )
The text was updated successfully, but these errors were encountered:
I just realized that my tests are wrong written and after fixing them all works well.
Sorry, something went wrong.
Related: sebastianbergmann/phpunit-mock-objects#100
Like you stated the behavior (not matching anymore) is intended as they are two different objects :)
No branches or pull requests
After upgrading to PHPUnit 3.7.1 some of my test fail because of the __phpunit_id attribute.
Test code:
In PHPUnit 3.6 this code works, in 3.7.1 the output is:
The text was updated successfully, but these errors were encountered: