Lines Matching refs:other
53 * @param mixed $other Value or object to evaluate.
61 public function evaluate($other, $description = '', $returnResult = false) argument
63 if (is_float($this->value) && is_float($other) &&
64 !is_infinite($this->value) && !is_infinite($other) &&
65 !is_nan($this->value) && !is_nan($other)) {
66 $success = abs($this->value - $other) < self::EPSILON;
68 $success = $this->value === $other;
79 if (is_string($this->value) && is_string($other)) {
82 $other,
84 $other
88 $this->fail($other, $description, $f);
98 * @param mixed $other Evaluated value or object.
102 protected function failureDescription($other) argument
104 if (is_object($this->value) && is_object($other)) {
108 if (is_string($this->value) && is_string($other)) {
112 return parent::failureDescription($other);