| Total Complexity | 5 | 
| Total Lines | 34 | 
| Duplicated Lines | 0 % | 
| Changes | 2 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 22 | class RenderTest extends TestCase | ||
| 23 | { | ||
| 24 | private $app; | ||
| 25 | |||
| 26 | public function setUp(): void | ||
| 31 | ]); | ||
| 32 | } | ||
| 33 | |||
| 34 | public function tearDown(): void | ||
| 38 | } | ||
| 39 | } | ||
| 40 | |||
| 41 | public function testRenderError(): void | ||
| 42 |     { | ||
| 43 | $this->expectException(MailerException::class); | ||
| 44 |         $this->app->send(new Message('test', ['[email protected]'], ['name' => 'Antony'])); | ||
| 45 | } | ||
| 46 | |||
| 47 | public function testRender(): void | ||
| 56 | } | ||
| 57 | } | ||
| 58 | 
If you suppress an error, we recommend checking for the error condition explicitly: