Fixed tiny issue with Tokenizer
[haanga.git] / tests / TestSuite.php
blob9724201d65d8f7863a8f75090b749b1b2aaa1a15
1 <?php
3 require dirname(__FILE__)."/../lib/Haanga.php";
4 require dirname(__FILE__)."/../lib/Haanga/Compiler.php";
5 require dirname(__FILE__)."/templateTest.php";
6 require dirname(__FILE__)."/errorTest.php";
9 class TestSuite extends PHPUnit_Framework_TestSuite
11 public static function suite()
13 $suite = new TestSuite('Haanga test suite');
14 $suite->addTestSuite('templateTest');
15 $suite->addTestSuite('errorTest');
17 return $suite;
20 public static function Init()
22 $config = array(
23 'cache_dir' => 'tmp/',
24 'template_dir' => '.',
25 'debug' => TRUE,
26 'use_hash_filename' => FALSE,
27 'compiler' => array(
28 'allow_exec' => TRUE,
29 'global' => array('test_global', 'global1'),
33 Haanga::Configure($config);