Lines Matching refs:other
44 * @param array|Traversable $other Array or Traversable object to evaluate.
48 protected function matches($other) argument
52 $other = $this->toArray($other);
55 $patched = array_replace_recursive($other, $this->subset);
58 return $other === $patched;
60 return $other == $patched;
80 * @param mixed $other Evaluated value or object.
84 protected function failureDescription($other) argument
90 * @param array|Traversable $other
94 private function toArray($other) argument
96 if (is_array($other)) {
97 return $other;
98 } elseif ($other instanceof ArrayObject) {
99 return $other->getArrayCopy();
100 } elseif ($other instanceof Traversable) {
101 return iterator_to_array($other);
105 return (array) $other;