From ebfc0e4f665cc4f0cab21ab82d01def774b6941d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Pawe=C5=82=20Skotnicki?=
Date: Thu, 29 May 2014 11:41:22 +0200
Subject: [PATCH] Fixed $notExistingKeys value name
---
src/Coduo/PHPMatcher/Matcher/ArrayMatcher.php | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/Coduo/PHPMatcher/Matcher/ArrayMatcher.php b/src/Coduo/PHPMatcher/Matcher/ArrayMatcher.php
index cf03e15d..82eacb66 100644
--- a/src/Coduo/PHPMatcher/Matcher/ArrayMatcher.php
+++ b/src/Coduo/PHPMatcher/Matcher/ArrayMatcher.php
@@ -78,10 +78,10 @@ private function iterateMatch(array $value, array $pattern)
}
if(is_array($pattern)) {
- $unexistingKeys = array_diff_key($pattern, $value);
+ $notExistingKeys = array_diff_key($pattern, $value);
- if (count($unexistingKeys) > 0) {
- $keyNames = array_keys($unexistingKeys);
+ if (count($notExistingKeys) > 0) {
+ $keyNames = array_keys($notExistingKeys);
$this->error = sprintf('There is no element under path [%s] in value array.', $keyNames[0]);
return false;
}