Alex\MailCatcher\Tests\BehatExtensionTest::testCriterias PHP Method

testCriterias() public method

public testCriterias ( )
    public function testCriterias()
    {
        $this->getClient()->purge();
        $this->sendMessage(\Swift_Message::newInstance()->setSubject('hello mailcatcher')->setFrom('[email protected]')->setTo('[email protected]')->setBody('This is a message from world to mailcatcher'));
        $this->sendMessage(\Swift_Message::newInstance()->setSubject('hello php')->setFrom('[email protected]')->setTo('[email protected]')->setBody('This is a message from world to php'));
        $this->runBehat(array("Then 2 mails should be sent", "Then 2 mail should be sent", 'When I open mail from "[email protected]"', 'Then I should see "from world" in mail', 'When I open mail to "[email protected]"', 'Then I should see "from world to mailcatcher" in mail', 'When I open mail containing "to mailcatcher"', 'Then I should see "from world to mailcatcher" in mail', 'When I open mail with subject "hello mailcatcher"', 'Then I should see "from world to mailcatcher" in mail'));
        $this->runBehat(array("Then 0 mails should be sent"), true);
    }