Fixing content type ordering when content_type is not defined.
[akelos.git] / test / unit / lib / utils.php
blob78910f42759d42db568ffc81a194aeab8b229f3f
1 <?php
3 /**
4 * Tests for static functions and generic utilities provided by Akelos
5 */
7 defined('ALL_TESTS_CALL') ? null : define("ALL_TESTS_CALL", true);
8 defined('AK_ENABLE_PROFILER') ? null : define('AK_ENABLE_PROFILER',true);
10 defined('AK_TEST_DATABASE_ON') ? null : define('AK_TEST_DATABASE_ON', true);
11 require_once(dirname(__FILE__).'/../../fixtures/config/config.php');
13 if(!defined('ALL_TESTS_RUNNER') && empty($test)){
14 $test = &new GroupTest('Akelos Framework Static Method and utilities Tests');
15 define('ALL_TESTS_RUNNER', false);
18 @session_start();
20 $partial_tests = array(
21 'Ak_convert',
22 'Ak_file_functions',
23 'Ak_object_inspection',
24 //'Ak_file_functions_over_ftp',
25 'Ak_support_functions',
28 foreach ($partial_tests as $partial_test){
29 $test->addTestFile(AK_LIB_TESTS_DIRECTORY.DS.'utils'.DS.'_'.$partial_test.'.php');
32 if(!ALL_TESTS_RUNNER){
33 if (TextReporter::inCli()) {
34 exit ($test->run(new TextReporter()) ? 0 : 1);
36 $test->run(new HtmlReporter());