test('clear', function() {batch(4, 'session/clear.php');}); module('Session (storage: database table)'); test('set values', function() {batch(4, 'session/dbtableset.php');}); test('clear', function() {batch(5, 'session/dbtableclear.php');}); module('CLI'); <?php define('ALLOW_INCLUSION', 1); define('ROOT_PATH', '../../'); require ROOT_PATH . 'wee/wee.php'; // Clean up the tmp directory exec('rm -rf ' . ROOT_PATH . 'app/tmp/*'); // Run the test suite $o = new weeTestSuite('../tests/'); $aTests = $o->toArray(); unset($aTests[getcwd() . '/../tests/maketests.php']); $aTests = array_keys($aTests); foreach ($aTests as $i => $sPath) { ?> test('<?php echo substr($sPath, strlen(getcwd() . '/../tests/')); ?> ', function() {run('cli.php?t=<?php echo $i; ?> ');}); <?php } ?>