/** * Set up the configuration. * * @param Configuration $configuration Configuration. * @return void */ function __construct($smtpHost, $smtpPort, $smtpUser, $smtpPass) { $this->smtpHost = $smtpHost; $this->smtpPort = $smtpPort; $this->smtpUser = $smtpUser; $this->smtpPass = $smtpPass; $uselessEmail = "*****@*****.**"; parent::__construct($uselessEmail); }
function testGetPluginInfo() { $plugin = new IMipPlugin('*****@*****.**'); $this->assertEquals('imip', $plugin->getPluginInfo()['name']); }
/** * Set up the configuration. * * @param Configuration $configuration Configuration. * @return void */ function __construct(Configuration $configuration) { parent::__construct($configuration->mail->username); $this->configuration = $configuration; }
/** * Creates the email handler. * * @param IMailer $mailer */ function __construct(IMailer $mailer, ILogger $logger) { parent::__construct(''); $this->mailer = $mailer; $this->logger = $logger; }