Lines Matching refs:other
31 * @param mixed $other
35 protected function matches($other) argument
37 return $this->expectedCount === $this->getCountOf($other);
41 * @param mixed $other
45 protected function getCountOf($other) argument
47 if ($other instanceof Countable || is_array($other)) {
48 return count($other);
49 } elseif ($other instanceof Traversable) {
50 if ($other instanceof IteratorAggregate) {
51 $iterator = $other->getIterator();
53 $iterator = $other;
99 * @param mixed $other Evaluated value or object.
103 protected function failureDescription($other) argument
107 $this->getCountOf($other),