/** * @expectedException \Sonatra\Bundle\MailerBundle\Exception\UnknownMailException * @expectedExceptionMessage The "test" mail template does not exist with the "all" type */ public function testLoadUnknownTemplate() { $loader = new ArrayMailLoader(array()); $loader->load('test'); }