/** * @param Assertion $assertion * @param string $message */ public function that(Assertion $assertion, $message = "") { if (!$assertion->checksOut()) { throw new AssertionFailedFailure($assertion, $message); } }
/** * @return bool */ public function checksOut() { return !$this->assertion->checksOut(); }