/** * @expectedException Apix\Log\Exception * This test relies on the mailer not being usable - for example that it uses an unreachable host */ public function testThrowsExceptionOnPhpMailerError() { $logger = new PhpMailer($this->mailer); $logger->info("Log me!"); }