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