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

testTrait() public method

public testTrait ( )
    public function testTrait()
    {
        if (version_compare(PHP_VERSION, "5.4") < 0) {
            $this->markTestSkipped("PHP version not supported");
        }
        $this->getClient()->purge();
        $this->sendMessage(\Swift_Message::newInstance()->setSubject('Welcome!')->setFrom('[email protected]')->setTo('[email protected]')->setBody('This is a message from world to mailcatcher'));
        $this->runBehat(array("Then a welcome mail should be sent"));
    }