public function notExists()
{
$score = $this->getScore();
$key = $score->errorExists($this->message, $this->type, $this->messageIsPattern);
if ($key === null) {
$this->pass();
} else {
switch (true) {
case $this->type === null && $this->message === null:
$failReason = $this->_('error exists');
break;
case $this->type === null && $this->message !== null:
$failReason = $this->_('error with message \'%s\' exists', $this->message);
break;
case $this->type !== null && $this->message === null:
$failReason = $this->_('error of type %s exists', self::getAsString($this->type));
break;
default:
$failReason = $this->_('error of type %s with message \'%s\' exists', self::getAsString($this->type), $this->message);
}
$this->fail($failReason);
}
return $this;
}