/** * Init instance * * @return Instance */ protected static function initInstance() { $instance = new Instance(); $instance->setOptions(Config::getData('mailer')); return $instance; }
/** * @expectedException \Bluz\Common\Exception\ComponentException */ public function testWithoutPHPMailerThrowException() { $mailer = new Mailer(); $mailer->create(); }