예제 #1
0
 /**
  * @param \Ingenerator\Mailhook\EmailMatcher $yes_matcher
  * @param \Ingenerator\Mailhook\EmailMatcher $no_matcher
  */
 function it_filters_emails_to_empty_array_when_one_matcher_matches_and_one_does_not($yes_matcher, $no_matcher)
 {
     $yes_matcher->matches(Argument::any())->willReturn(TRUE);
     $no_matcher->matches(Argument::any())->willReturn(FALSE);
     $this->subject->filterEmails(array(new DummyEmail()), array($yes_matcher, $no_matcher))->shouldBe(array());
 }