#!/usr/bin/php loadConfig( 'library/smutty.cfg' ); $cfg->loadConfig( '../tests/data/app.cfg' ); Smutty_Error::setErrorReporting( ERR_ALL ); $suite = new Smutty_Test_Suite( '../tests' ); if ( $test = v($argv,1) ) $suite->addTest( $test ); else { $d = opendir( '../tests' ); while ( $f = readdir($d) ) if ( substr($f,-8) == 'Test.php' ) $suite->addTest( substr($f,0,strlen($f)-4) ); } $suite->run(); ?>