| Total Complexity | 4 |
| Total Lines | 45 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | final class ErrorSuppressionTest extends IntegrationTestCase |
||
| 9 | { |
||
| 10 | /** @var string */ |
||
| 11 | protected $templateDirectory = __DIR__ . '/Templates'; |
||
| 12 | |||
| 13 | protected function setUp() |
||
| 16 | } |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @return void |
||
| 20 | */ |
||
| 21 | public function testIncludedTemplateShouldThrowAnException() |
||
| 22 | { |
||
| 23 | $this->expectExceptionMessage('item_exception'); |
||
| 24 | |||
| 25 | $this->renderTemplate('item.twig'); |
||
| 26 | } |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @return void |
||
| 30 | */ |
||
| 31 | public function testOptionalBlocksShouldDiscardTheirContentsOnRuntimeExceptions() |
||
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @return void |
||
| 42 | */ |
||
| 43 | public function testOptionalBlocksShouldNotSuppressLogicExceptions() |
||
| 55 |