Skip to content

Commit 6db7e1c

Browse files
committed
test: add test for exception message
1 parent d30e3b2 commit 6db7e1c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tests/system/View/ParserTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -942,6 +942,8 @@ public function testRenderFindsView()
942942
public function testRenderCannotFindView()
943943
{
944944
$this->expectException(ViewException::class);
945+
$this->expectExceptionMessageMatches('!/View/Views/Simplest\.php\z!');
946+
945947
$this->parser->setData(['testString' => 'Hello World']);
946948
$this->parser->render('Simplest');
947949
}

0 commit comments

Comments
 (0)