Skip to content

Commit

Permalink
Added return type for model ast visitors. (#6544)
Browse files Browse the repository at this point in the history
  • Loading branch information
limingxinleo authored Feb 20, 2024
1 parent f4ebe41 commit ab8388b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/RenderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ public function testRenderException()
]));

try {
$render->getContents('index.tpl', ['title' => 'Hyperf']);
$render->getContents('index2.tpl', ['title' => 'Hyperf']);
$this->assertTrue(false);
} catch (Throwable $throwable) {
$this->assertInstanceOf(RenderException::class, $throwable);
$this->assertSame('Undefined index: name', $throwable->getMessage());
$this->assertSame("Unable to load template 'file:index2.tpl'", $throwable->getMessage());
$this->assertNotNull($throwable->getPrevious());
}
}
Expand Down

0 comments on commit ab8388b

Please sign in to comment.