- Added more filters and custom tags
[haanga.git] / tests / errorTest.php
blob201631e77328ea18b08da9495478df13dc6b073e
1 <?php
3 class errorTest extends PHPUnit_Framework_TestCase
5 /**
6 * @dataProvider tplProvider
7 *
8 */
9 function testInvalidForloop($tpl)
11 $this->setExpectedException('Haanga_CompilerException');
12 Haanga::Load($tpl);
15 public function tplProvider()
17 $datas = array();
18 foreach (glob("err_templates/*.tpl") as $err_file) {
19 $datas[] = array($err_file);
22 return $datas;