/** * Returns whether a given value is equal to this mime part * * @param var $cmp * @return bool */ public function equals($cmp) { return $cmp instanceof self && $this->contenttype === $cmp->contenttype && $this->charset === $cmp->charset && $this->encoding === $cmp->encoding && $this->disposition === $cmp->disposition && $this->name === $cmp->name && $this->filename === $cmp->filename && $this->id === $cmp->id && $this->body === $cmp->body && Objects::equal($this->headers, $cmp->headers); }
/** * Indicates whether the argument on postion $pos machtes the specified * value. * * @param int pos * @param var value * @return bool */ private function doesMatchArg($pos, $value) { $argVal = $this->args[$pos]; if ($argVal instanceof IArgumentMatcher) { return $argVal->matches($value); } else { return Objects::equal($argVal, $value); } }
/** * Returns whether a given value is equal to this payload * * @param var cmp * @return bool */ public function equals($cmp) { return $cmp instanceof self && Objects::equal($cmp->value, $this->value) && $this->properties === $cmp->properties; }
/** * Checks whether an object is equal to this DSN * * @param lang.Generic cmp * @return bool */ public function equals($cmp) { return $cmp instanceof self && $cmp->getDriver() === $this->getDriver() && $cmp->getUser() === $this->getUser() && $cmp->getPassword() === $this->getPassword() && $cmp->getHost() === $this->getHost() && $cmp->getPort() === $this->getPort() && $cmp->getDatabase() === $this->getDatabase() && $cmp->flags === $this->flags && Objects::equal($cmp->prop, $this->prop); }
/** Check if is equal to other object */ public function equals($cmp) : bool { if (!$cmp instanceof self) { return false; } // If based on files, and both base on the same file, then they're equal if (null === $this->_data && null === $cmp->_data) { return $this->_file === $cmp->_file; } else { return Objects::equal($this->_data, $cmp->_data); } }
/** * Returns whether a given value is equal to this Response instance * * @param var cmp * @return bool */ public function equals($cmp) { return $cmp instanceof self && $this->status === $cmp->status && Objects::equal($this->headers, $cmp->headers) && Objects::equal($this->cookies, $cmp->cookies); }
/** * Assert that two values are not equal * * @param var expected * @param var actual * @param string error default 'equal' */ public function assertNotEquals($expected, $actual, $error = '!equals') { if (Objects::equal($expected, $actual)) { $this->fail($error, $actual, $expected); } }