public function testInvalidTemplateType()
{
$file = new File(array('compile' => false, 'paths' => array('template' => '{:library}/views/{:controller}/{:template}.{:type}.php')));
$this->assertException("Invalid template type 'invalid'.", function () use($file) {
$file->template('invalid', array('template' => 'foo'));
});
}