/**
  * @param \Ingenerator\Mailhook\Email $email
  */
 function it_matches_email_containing_text($email)
 {
     $this->beConstructedWith('Some text');
     $email->getContent()->willReturn('This email has Some text that matches');
     $this->subject->matches($email)->shouldBe(TRUE);
 }
 /**
  * {@inheritdoc}
  */
 public function matches(Email $email)
 {
     return strpos($email->getContent(), $this->text) !== FALSE;
 }