$result = Strings::equal('0123', 123);
false
public function asString() { $key = $this->timeAgo->getKey(); $params = $this->timeAgo->getParams(); if (Strings::equal($key, 'timeAgo.thisYear')) { $params['month'] = I18n::t($params['month']); } return I18n::t($key, $params); }
/** * @test */ public function shouldReturnFalseForObjectWithDifferentStringRepresentation() { $this->assertFalse(Strings::equal('0123', 123)); $this->assertFalse(Strings::equal(123, '0123')); }
private static function _putRequestParameters($content) { if (Strings::equal(Arrays::getValue($_SERVER, 'REQUEST_METHOD'), 'PUT') && Strings::equalsIgnoreCase(ContentType::value(), 'application/x-www-form-urlencoded')) { parse_str($content, $parameters); return Arrays::toArray($parameters); } return false; }