diff --git a/tests/SpecTests/DocumentsMatchConstraint.php b/tests/SpecTests/DocumentsMatchConstraint.php index 26556491a..ff4b0a313 100644 --- a/tests/SpecTests/DocumentsMatchConstraint.php +++ b/tests/SpecTests/DocumentsMatchConstraint.php @@ -315,7 +315,7 @@ private function assertEquals(ArrayObject $expected, ArrayObject $actual, $ignor } $expectedType = is_object($expectedValue) ? get_class($expectedValue) : gettype($expectedValue); - $actualType = is_object($expectedValue) ? get_class($actualValue) : gettype($actualValue); + $actualType = is_object($actualValue) ? get_class($actualValue) : gettype($actualValue); // Workaround for ObjectComparator printing the whole actual object if ($expectedType !== $actualType) {