public function endWith($fragment, $failMessage = null)
{
if (mb_strpos($this->valueIsSet()->value, $fragment, 0, 'UTF-8') === mb_strlen($this->valueIsSet()->value, 'UTF-8') - mb_strlen($fragment, 'UTF-8')) {
$this->pass();
} else {
$this->fail($failMessage ?: $this->_('%s does not end with %s', $this, $fragment));
}
return $this;
}