From b0b8483e107dd539485cfc92800dd164ace179c8 Mon Sep 17 00:00:00 2001 From: Jeremy Mikola Date: Mon, 21 Sep 2020 17:17:14 -0400 Subject: [PATCH] Consult $actualValue when setting $actualType Fixes a typo from 0b923b08985fe369d50d071fefa31e03b221b6fd --- tests/SpecTests/DocumentsMatchConstraint.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {