/** * @expectedException \rmrevin\yii\postman\LetterException */ public function testNotInitMailerException() { $NewLetter = new postman\models\LetterModel(); $NewLetter->sendImmediately(); }