@@ -1290,13 +1290,13 @@ private function initDefaultBindings()
12901290
12911291 private function packageAndState ($ packageName , $ state )
12921292 {
1293- return Expr::same (BindingDescriptor::CONTAINING_PACKAGE , $ packageName )
1294- ->andSame (BindingDescriptor::STATE , $ state );
1293+ return Expr::same ($ packageName , BindingDescriptor::CONTAINING_PACKAGE )
1294+ ->andSame ($ state , BindingDescriptor::STATE );
12951295 }
12961296
12971297 private function uuid ($ uuid )
12981298 {
1299- return Expr::startsWith (BindingDescriptor::UUID , $ uuid );
1299+ return Expr::startsWith ($ uuid , BindingDescriptor::UUID );
13001300 }
13011301
13021302 private function returnForExpr (Expression $ expr , $ result )
@@ -1307,7 +1307,7 @@ private function returnForExpr(Expression $expr, $result)
13071307 // that object in between, PHPUnit fails since the state of the object
13081308 // *after* the test does not match the first assertion anymore
13091309 return function (Expression $ actualExpr ) use ($ expr , $ result ) {
1310- PHPUnit_Framework_Assert::assertTrue ($ actualExpr ->equals ($ expr ));
1310+ PHPUnit_Framework_Assert::assertTrue ($ actualExpr ->equivalentTo ($ expr ));
13111311
13121312 return $ result ;
13131313 };
@@ -1318,7 +1318,7 @@ private function returnFromMap(array $map)
13181318 return function (Expression $ expr ) use ($ map ) {
13191319 foreach ($ map as $ arguments ) {
13201320 // Cannot use willReturnMap(), which uses ===
1321- if ($ expr ->equals ($ arguments [0 ])) {
1321+ if ($ expr ->equivalentTo ($ arguments [0 ])) {
13221322 return $ arguments [1 ];
13231323 }
13241324 }
0 commit comments