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