luyatests\core\components\MailTest::testRealdSendMailError PHP Method

testRealdSendMailError() public method

    public function testRealdSendMailError()
    {
        $mail = new Mail();
        $this->assertFalse($mail->compose('foobar', 'phpunit')->address('[email protected]')->send());
        $this->assertFalse(empty($mail->getError()));
    }