Skip to content

Commit 14b6410

Browse files
committed
Add test for the render method
1 parent 570e9a4 commit 14b6410

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/BladeTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,12 @@ public function testNonBlade()
2828
$this->assertEquals('this is plain php', trim($output));
2929
}
3030

31+
public function testRenderAlias()
32+
{
33+
$blade = new Blade('tests/views', 'tests/cache');
34+
35+
$output = $blade->render('basic');
36+
$this->assertEquals('hello world', trim($output));
37+
}
38+
3139
}

0 commit comments

Comments
 (0)