/** * Test exception thrown by getMailer. * * @expectedException Cake\Mailer\Exception\MissingMailerException * @expectedExceptionMessage Mailer class "Test" could not be found. */ public function testGetMailerThrowsException() { $stub = new Stub(); $stub->getMailer('Test'); }