/** * @param \Ingenerator\Mailhook\EmailMatcher $matcher1 * @param \Ingenerator\Mailhook\EmailMatcher $matcher2 */ function it_describes_matchers_in_message($matcher1, $matcher2) { $matcher1->__toString()->willReturn('Containing "here"'); $matcher2->__toString()->willReturn('To test@ingenerator.com'); $this->beConstructedWith('Problem email', array($matcher1, $matcher2)); $this->subject->getMessage()->shouldMatch('/\\nMatchers: Containing "here", To test@ingenerator.com$/'); }