Пример #1
0
 /**
  * {@inheritdoc}
  */
 public function matches(Email $email)
 {
     return $email->getTo() === $this->recipient;
 }
Пример #2
0
 /**
  * @param \Ingenerator\Mailhook\Email $email
  */
 function it_matches_email_sent_to_recipient($email)
 {
     $this->subject->beConstructedWith('*****@*****.**');
     $email->getTo()->willReturn('*****@*****.**');
     $this->subject->matches($email)->shouldBe(TRUE);
 }