public function testSendSmtp()
{
// Skips the test if no smtp connection is set
if (empty($GLOBALS['smtp'])) {
$this->markTestSkipped('Smtp host not set');
}
$sender = new Sender();
$sender->setEmail($this->getEmail())->setSmtp($GLOBALS['smtp']);
$result = $sender->send(Sender::MODE_SMTP);
$this->assertResult('sender-type-simple-text.eml', $result);
}