Example #1
0
 public function doAssert(\Hamcrest_Matcher $matcher, $message = null)
 {
     if (!empty($message)) {
         \Hamcrest_MatcherAssert::assertThat($message, $this->value, \Hamcrest_Core_IsCollectionContaining::hasItem($matcher));
     } else {
         \Hamcrest_MatcherAssert::assertThat($this->value, \Hamcrest_Core_IsCollectionContaining::hasItem($matcher));
     }
 }
 protected function createMatcher()
 {
     return Hamcrest_Core_IsCollectionContaining::hasItem(equalTo('irrelevant'));
 }