/home/techb158/dev.balacoffee.com/vendor/mockery/mockery/library/Mockery/Matcher
NameSizeModeActions
AndAnyOtherArgs.php7530644editdlrm
Any.php7320644editdlrm
AnyArgs.php6220644editdlrm
AnyOf.php8330644editdlrm
ArgumentListMatcher.php3640644editdlrm
Closure.php8330644editdlrm
Contains.php13330644editdlrm
Ducktype.php10080644editdlrm
HasKey.php7950644editdlrm
HasValue.php8350644editdlrm
IsEqual.php7630644editdlrm
IsSame.php7620644editdlrm
MatcherAbstract.php8470644editdlrm
MatcherInterface.php8110644editdlrm
MultiArgumentClosure.php10120644editdlrm
MustBe.php9250644editdlrm
NoArgs.php6350644editdlrm
Not.php8160644editdlrm
NotAnyOf.php9530644editdlrm
Pattern.php7950644editdlrm
Subset.php22200644editdlrm
Type.php12090644editdlrm
Edit: /home/techb158/dev.balacoffee.com/vendor/mockery/mockery/library/Mockery/Matcher/Subset.php (2220B)
expected = $expected; $this->strict = $strict; } /** * @param array $expected Expected subset of data * * @return Subset */ public static function strict(array $expected) { return new static($expected, true); } /** * @param array $expected Expected subset of data * * @return Subset */ public static function loose(array $expected) { return new static($expected, false); } /** * Check if the actual value matches the expected. * * @param mixed $actual * @return bool */ public function match(&$actual) { if (!is_array($actual)) { return false; } if ($this->strict) { return $actual === array_replace_recursive($actual, $this->expected); } return $actual == array_replace_recursive($actual, $this->expected); } /** * Return a string representation of this Matcher * * @return string */ public function __toString() { return 'formatArray($this->expected) . ">"; } /** * Recursively format an array into the string representation for this matcher * * @param array $array * @return string */ protected function formatArray(array $array) { $elements = []; foreach ($array as $k => $v) { $elements[] = $k . '=' . (is_array($v) ? $this->formatArray($v) : (string) $v); } return "[" . implode(", ", $elements) . "]"; } }