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