Permalink
Browse files

fixed some notice errors and remove envirornment already set in codei…

…gniter core
  • Loading branch information...
1 parent b7a20ae commit e0ddf6b835b362451cf89c834bca280805fd7798 @chonthu chonthu committed Nov 30, 2011
Showing with 1 addition and 2 deletions.
  1. +1 −2 unit_test.php
View
3 unit_test.php
@@ -14,7 +14,6 @@
/**
* Configure your paths here:
*/
-define('ENVIRONMENT', 'unit_test');
define('MAIN_PATH', realpath(dirname(__FILE__)).'/');
define('SIMPLETEST', MAIN_PATH.'tests/simpletest/'); // Directory of simpletest
define('ROOT', MAIN_PATH); // Directory of codeigniter index.php
@@ -183,7 +182,7 @@ function map_tests($location = '')
$form_url = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
//display the form
-if ($cli_mode)
+if (isset($cli_mode))
{
exit ($test_suite->run(new TextReporter()) ? 0 : 1);
}

0 comments on commit e0ddf6b

Please sign in to comment.