Skip to content

Commit 08d7f3d

Browse files
author
Bauffman
committed
Adds test to trigger exception in the render method.
1 parent 422689e commit 08d7f3d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Tests/TemplateTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,12 @@ public function testRemove()
7272
$this->template->assign('name', 'Davy Hellemans');
7373
$this->assertSame($this->template, $this->template->remove('name'));
7474
}
75+
76+
/**
77+
* @expectedException Spoon\Template\Exception
78+
*/
79+
public function testRenderException()
80+
{
81+
$this->template->render('foo-bar-baz.tpl');
82+
}
7583
}

0 commit comments

Comments
 (0)