Exemple #1
0
 public function matchesWithDiagnosticDescription($item, Hamcrest_Description $mismatchDescription)
 {
     foreach ($this->_matchers as $matcher) {
         if (!$matcher->matches($item)) {
             $mismatchDescription->appendDescriptionOf($matcher)->appendText(' ');
             $matcher->describeMismatch($item, $mismatchDescription);
             return false;
         }
     }
     return true;
 }
 public function describeTo(Hamcrest_Description $description)
 {
     $description->appendDescriptionOf($this->_matcher);
 }