made function call less redundant

This commit is contained in:
tmont 2009-06-14 04:37:09 +00:00
parent ca2237671a
commit 9e5acd7da8
2 changed files with 5 additions and 3 deletions

View File

@ -14,9 +14,7 @@
public abstract function evaluate();
protected function getFailureMessage() {
return 'something';
}
protected abstract function getFailureMessage();
}

View File

@ -20,6 +20,10 @@
return $this->negateString($this->constraint->toString($message));
}
protected function getFailureMessage() {
throw new BadMethodCallException();
}
protected function negateString($string) {
return str_replace(
array(