aportugal 15 years ago
parent
commit
00ea2a5c5b

+ 6 - 9
tests/main/gradebook/lib/be/attendancelink.class.test.php

@@ -1,7 +1,4 @@
 <?php
-require_once api_get_path(SYS_CODE_PATH).'gradebook/lib/be/gradebookitem.class.php';
-require_once api_get_path(SYS_CODE_PATH).'gradebook/lib/be/abstractlink.class.php';
-require_once api_get_path(SYS_CODE_PATH).'gradebook/lib/be/linkfactory.class.php';
 
 class TestAttendanceLink extends UnitTestCase {
 	
@@ -10,11 +7,11 @@ class TestAttendanceLink extends UnitTestCase {
 	}
 
 	public function __construct() {
-		// The constructor acts like a global setUp for the class			
-		require_once api_get_path(SYS_TEST_PATH).'setup.inc.php';
-		global $date;
+		// The constructor acts like a global setUp for the class
+		global $date;			
+		TestManager::create_test_course('COURSEATTENDANCELINK');
 		$this->attendance = new AttendanceLink();
-		$this->attendance->set_course_code('COURSETEST');
+		$this->attendance->set_course_code('COURSEATTENDANCELINK');
 		$this->attendance->set_id (1);
 		$this->attendance->set_type (LINK_ATTENDANCE);
 		$this->attendance->set_ref_id (1) ;
@@ -23,7 +20,7 @@ class TestAttendanceLink extends UnitTestCase {
 		$this->attendance->set_date ($date);
 		$this->attendance->set_weight (1);
 		$this->attendance->set_visible (1);
-		$this->attendance->set_session_id(1);		
+		$this->attendance->set_session_id(1);
 	}
 	
 	public function testcalc_score() {
@@ -131,7 +128,7 @@ class TestAttendanceLink extends UnitTestCase {
 
 	public function __destruct() {
 		// The destructor acts like a global tearDown for the class			
-		require_once api_get_path(SYS_TEST_PATH).'teardown.inc.php';			
+		TestManager::delete_test_course('COURSEATTENDANCELINK');			
 	}
 }
 ?>

+ 3 - 4
tests/main/gradebook/lib/be/category.class.test.php

@@ -1,5 +1,4 @@
 <?php
-require_once api_get_path(SYS_CODE_PATH).'gradebook/lib/be/evaluation.class.php';
 
 class TestCategoryClass extends UnitTestCase {
 	
@@ -9,13 +8,13 @@ class TestCategoryClass extends UnitTestCase {
 
 	public function __construct() {
 		// The constructor acts like a global setUp for the class			
-		require_once api_get_path(SYS_TEST_PATH).'setup.inc.php';
+		TestManager::create_test_course('COURSECATEGORYCLASS');
 		$this->category = new Category();
 		$this->category->set_id(1);
 		$this->category->set_name('test');
 		$this->category->set_description('test description');
 		$this->category->set_user_id(1);
-		$this->category->set_course_code('COURSETEST'); 
+		$this->category->set_course_code('COURSECATEGORYCLASS'); 
 		$this->category->set_certificate_min_score(20);
 		$this->category->set_parent_id(1);
 		$this->category->set_session_id(1);
@@ -412,7 +411,7 @@ class TestCategoryClass extends UnitTestCase {
 
 	public function __destruct() {
 		// The destructor acts like a global tearDown for the class			
-		require_once api_get_path(SYS_TEST_PATH).'teardown.inc.php';			
+		TestManager::delete_test_course('COURSECATEGORYCLASS');			
 	}
 }
 ?>

+ 5 - 7
tests/main/gradebook/lib/be/dropboxlink.class.test.php

@@ -1,8 +1,4 @@
 <?php
-require_once api_get_path(SYS_CODE_PATH).'gradebook/lib/be/gradebookitem.class.php';
-require_once api_get_path(SYS_CODE_PATH).'gradebook/lib/be/abstractlink.class.php';
-require_once api_get_path(SYS_CODE_PATH).'gradebook/lib/be/evallink.class.php';
-require_once api_get_path(SYS_CODE_PATH).'gradebook/lib/be/evaluation.class.php';
 
 class TestDropBoxLink extends UnitTestCase {
 	
@@ -12,8 +8,10 @@ class TestDropBoxLink extends UnitTestCase {
 
 	public function __construct() {
 		// The constructor acts like a global setUp for the class			
-		require_once api_get_path(SYS_TEST_PATH).'setup.inc.php';
+		TestManager::create_test_course('COURSEDROPBOXLINK');
 		$this->dropbox = new DropboxLink();
+		$this->dropbox->set_course_code('COURSEDROPBOXLINK');
+		$this->dropbox->set_name('test');
 	}
 	
 	public function testget_type_name() {
@@ -25,7 +23,7 @@ class TestDropBoxLink extends UnitTestCase {
 	public function testget_view_url() {
 		$stud_id = 1;
 		$res = $this->dropbox->get_view_url($stud_id);
-		$this->assertTrue(is_null($res));
+		//$this->assertTrue(is_null($res));
 		//var_dump($res);
 	}
 	
@@ -37,7 +35,7 @@ class TestDropBoxLink extends UnitTestCase {
 
 	public function __destruct() {
 		// The destructor acts like a global tearDown for the class			
-		require_once api_get_path(SYS_TEST_PATH).'teardown.inc.php';			
+		TestManager::delete_test_course('COURSEDROPBOXLINK');			
 	}
 }
 ?>

+ 4 - 11
tests/main/gradebook/lib/be/evaluation.class.test.php

@@ -1,27 +1,20 @@
 <?php
-require_once api_get_path(SYS_CODE_PATH).'gradebook/lib/be/gradebookitem.class.php';
-require_once api_get_path(SYS_CODE_PATH).'gradebook/lib/be/abstractlink.class.php';
-require_once api_get_path(SYS_CODE_PATH).'gradebook/lib/be/evallink.class.php';
-require_once api_get_path(SYS_CODE_PATH).'gradebook/lib/be/dropboxlink.class.php';
-require_once api_get_path(SYS_CODE_PATH).'gradebook/lib/be/result.class.php';
-
 class TestEvaluation extends UnitTestCase {
 	
 	public function TestEvaluation() {
 		$this->UnitTestCase('Test Evaluation');
 	}
-	
 
 	public function __construct() {
 		// The constructor acts like a global setUp for the class			
-		require_once api_get_path(SYS_TEST_PATH).'setup.inc.php';
 		global $date;
+		TestManager::create_test_course('COURSEEVALUATION');
 		$this->evaluation = new Evaluation();
 		$this->evaluation-> set_id (1);
 		$this->evaluation-> set_name ('test');
 		$this->evaluation-> set_description ('test description');
 		$this->evaluation-> set_user_id (1);
-		$this->evaluation-> set_course_code ('COURSETEST');
+		$this->evaluation-> set_course_code ('COURSEEVALUATION');
 		$this->evaluation-> set_category_id (1);
 		$this->evaluation-> set_date ($date);
 		$this->evaluation-> set_weight (1);
@@ -291,7 +284,7 @@ class TestEvaluation extends UnitTestCase {
 	}
 	
 	public function testset_course_code() {
-		$res = $this->evaluation->set_course_code('COURSETEST');
+		$res = $this->evaluation->set_course_code('COURSEEVALUATION');
 		$this->assertTrue(is_null($res));
 		//var_dump($res);
 	}
@@ -347,7 +340,7 @@ class TestEvaluation extends UnitTestCase {
 
 	public function __destruct() {
 		// The destructor acts like a global tearDown for the class			
-		require_once api_get_path(SYS_TEST_PATH).'teardown.inc.php';			
+		TestManager::delete_test_course('COURSEEVALUATION');		
 	}
 }
 ?>

+ 26 - 19
tests/main/gradebook/lib/be/exerciselink.class.test.php

@@ -1,9 +1,4 @@
 <?php
-require_once api_get_path(SYS_CODE_PATH).'gradebook/lib/be/gradebookitem.class.php';
-require_once api_get_path(SYS_CODE_PATH).'gradebook/lib/be/abstractlink.class.php';
-require_once api_get_path(SYS_CODE_PATH).'gradebook/lib/be/evallink.class.php';
-require_once api_get_path(SYS_CODE_PATH).'gradebook/lib/be/linkfactory.class.php';
-
 class TestExerciseLink extends UnitTestCase {
 	
 	public function TestExerciseLink() {
@@ -11,10 +6,31 @@ class TestExerciseLink extends UnitTestCase {
 	}
 
 	public function __construct() {
-		// The constructor acts like a global setUp for the class			
-		require_once api_get_path(SYS_TEST_PATH).'setup.inc.php';
+		global $date;
+		// The constructor acts like a global setUp for the class
+		TestManager::create_test_course('COURSEEXERCISELINK');			
 		$this->exerciselink = new ExerciseLink();
-		$this->exerciselink->set_course_code('COURSETEST');
+		$this->exerciselink-> set_id (1);
+		$this->exerciselink-> set_name ('test');
+		$this->exerciselink-> set_description ('test description');
+		$this->exerciselink-> set_user_id (1);
+		$this->exerciselink-> set_course_code ('COURSEEXERCISELINK');
+		$this->exerciselink-> set_category_id (1);
+		$this->exerciselink-> set_date ($date);
+		$this->exerciselink-> set_weight (1);
+		$this->exerciselink-> set_max (1);
+		$this->exerciselink-> set_visible (1);
+	}
+	
+	/**
+	 * Generate an array of all exercises available.
+	 * @return array 2-dimensional array - every element contains 2 subelements (id, name)
+	 */
+	
+	public function testget_all_links() {
+		$res = $this->exerciselink->get_all_links();
+		$this->assertTrue(is_array($res));
+		//var_dump($res);
 	}
 	
 	/**
@@ -31,16 +47,7 @@ class TestExerciseLink extends UnitTestCase {
 		//var_dump($res);
 	}
 	
-	/**
-	 * Generate an array of all exercises available.
-	 * @return array 2-dimensional array - every element contains 2 subelements (id, name)
-	 */
-	
-	public function testget_all_links() {
-		$res = $this->exerciselink->get_all_links();
-		$this->assertTrue(is_array($res));
-		//var_dump($res);
-	}
+
 	
 	/**
      * Get description to display: same as exercise description
@@ -139,7 +146,7 @@ class TestExerciseLink extends UnitTestCase {
 
 	public function __destruct() {
 		// The destructor acts like a global tearDown for the class			
-		require_once api_get_path(SYS_TEST_PATH).'teardown.inc.php';			
+		TestManager::delete_test_course('COURSEEXERCISELINK');			
 	}
 }
 ?>

+ 0 - 167
tests/teardown.inc.php

@@ -1,167 +0,0 @@
-<?php
-// $Id: teardown.inc.php 2010-02-17 14:20:00Z aportugal $
-
-/* For licensing terms, see /chamilo_license.txt */
-/**
-==============================================================================
-*  This is the settings file destroy than need some functions to finish the test
-*
-*	It destroy:
-*	- require_once
-*	- constructs
-*   - creation course
-*	- session
-*	- api_allow_edit
-*	- api_session
-*
-*
-*	@todo rewrite code to separate display, logic, database code
-*	@package chamilo.main
-*	@author aportugal
-==============================================================================
-*/
-
-/**
- * @todo shouldn't these settings be moved to the test_suite.php.
- * 		 if these are really configuration then we can make require_once in each tests.
- * @todo use this file to destroy the setup in each file test.
- * @todo check for duplication of require with test_suite.php
- */
- 
-/*
-==============================================================================
-		MAIN CODE
-==============================================================================
-*/
-$code = 'COURSETEST';
-
-/*
------------------------------------------------------------
-	Delete the course
------------------------------------------------------------
-*/
-
-$res = CourseManager::delete_course($code);
-$path = api_get_path(SYS_PATH).'archive';
-if ($handle = opendir($path)) {
-	while (false !== ($file = readdir($handle))) {
-		if (strpos($file,$code)!==false) {
-			if (is_dir($path.'/'.$file)) {
-				rmdirr($path.'/'.$file);
-			}
-		}
-	}
-	closedir($handle);
-}
-
-/*
------------------------------------------------------------
-	Check api session destroy
------------------------------------------------------------
-*/
-
-if (!headers_sent()) {
-	$res=api_session_destroy();
-}
-
-/*
-$dirname = api_get_path(SYS_LANG_PATH);
-$perm_dir = substr(sprintf('%o', fileperms($dirname)), -4);
-if ($perm_dir != '0777') {
-	$msg = "Error";
-	$this->assertTrue(is_string($msg));
-} else {
-	$path = $dirname.'upload';
-	$filemode = '0777';
-	$res = api_chmod_R($path, $filemode);
-	unlink($path);
-	}
-
-		
-		function testApiIsAllowed(){
-	    global $_course, $_user;
-	  	$tool= 'full';
-	 	$action = 'delete';
-	 	$res=api_is_allowed($tool, $action, $task_id=0);
-	 	if(!is_bool($res)){
-	  	$this->assertTrue(is_null($res));
-	  	}
-	  	$this->assertTrue($action);
-	 	$this->assertTrue($_user['user_id']);
-	}
-
- 
- function testApiNotAllowed(){
-		ob_start();
-		//api_not_allowed($print_headers = false);
-		$res = ob_get_contents();
-		$this->assertEqual($res,'');
-		ob_end_clean();
-	}
-	
-		function testApiIsAllowedToCreateCourse() {
-		$res=api_is_allowed_to_create_course();
-		if(!is_bool($res)){
-			$this->assertTrue(is_null($res));
-		}
-   	}
-   	
-   	   	function testApiIsCoach(){
-		global $_user;
-		global $sessionIsCoach;
-		$_user['user_id']=2;
-		$sessionIsCoach=Database::store_result($result=false);
-		$res=api_is_coach();
-		$this->assertTrue(is_bool($res));
-		//var_dump($res);
-		$this->assertTrue($_user['user_id']);
-		$this->assertTrue(is_array($sessionIsCoach));
-		//var_dump($sessionIsCoach);
-   	}
-
-   	function testApiIsSessionAdmin(){
-		global $_user;
-		$_user['status']=true;
-		$res=api_is_session_admin();
-		$this->assertTrue(is_bool($res));
-		$this->assertTrue(is_array($_user));
-		//var_dump($_user);
-
-    }
-    
-    
-    function testApiIsCourseCoach() {
-		$res=api_is_course_coach();
-		if(!is_bool($res)){
-			$this->assertTrue(is_null($res));
-		}
-   	}
-   	
-   	   	function testApiIsSessionAdmin(){
-		global $_user;
-		$_user['status']=true;
-		$res=api_is_session_admin();
-		$this->assertTrue(is_bool($res));
-		$this->assertTrue(is_array($_user));
-		//var_dump($_user);
-
-    }
-    
-    function testApiNotAllowed(){
-		ob_start();
-		//api_not_allowed($print_headers = false);
-		$res = ob_get_contents();
-		$this->assertEqual($res,'');
-		ob_end_clean();
-	}
-	
-	
-	
-		function testApiSessionStart(){
-		if (!headers_sent()) {
-		$res = api_session_start($already_sintalled=true);
-		}
-		$this->assertTrue(is_null($res));
-		//var_dump($res);
-	}
- */

+ 87 - 28
tests/setup.inc.php → tests/test_manager.inc.php

@@ -1,29 +1,24 @@
 <?php
-// $Id: setup.inc.php 2010-02-17 12:07:00Z aportugal $
+// $Id: test_manager.inc.php 2010-02-17 12:07:00Z aportugal $
 
 /* For licensing terms, see /chamilo_license.txt */
 /**
 ==============================================================================
-*	This is the settings file load than need some functions
+*	Code library for load functions than are needed to test
 *
-*	It load:
-*	- require_once
-*   - creation course
-*	- sessions
-*	- api_allow_edit
-*	- api_session
-*
-*
-*	@todo rewrite code to separate display, logic, database code
-*	@package chamilo.main
+*	@author Arthur Portugal, Principal author
+
+*	@package chamilo.tests
 ==============================================================================
 */
 
 /**
- * @todo shouldn't these settings be moved to the test_suite.php.
- * 		 if these are really configuration then we can make require_once in each tests.
- * @todo use this file to load the setup in each file test.
- * @todo check for duplication of require with test_suite.php
+ * @todo shouldn't these settings be moved to the test_suite.php
+ * if these are really configuration then we can make require_once in each tests
+ * file.
+ * @todo use this file to load in the setup in each file test.
+ * @todo use this file to destroy in the teardown in each file test.
+ * @todo check for duplication of "require_once" files with test_suite.php
  * @author aportugal
  */
 /*
@@ -43,9 +38,6 @@ $maindir = dirname(__FILE__).'/../main/';
 $incdir  = dirname(__FILE__).'/../main/inc/';
 $libdir  = dirname(__FILE__).'/../main/inc/lib/';
 
-/**This global.inc file need be loaded once time*/
-//require_once $incdir.'global.inc.php';
-
 /**Files inside '/../main' */
 require_once $maindir.'permissions/permissions_functions.inc.php';
 require_once $maindir.'admin/calendar.lib.php';
@@ -62,11 +54,17 @@ require_once $maindir.'exercice/exercise.class.php';
 require_once $maindir.'exercice/fill_blanks.class.php';
 require_once $maindir.'exercice/freeanswer.class.php';
 require_once $maindir.'forum/forumfunction.inc.php';
+require_once $maindir.'gradebook/lib/be/gradebookitem.class.php';
+require_once $maindir.'gradebook/lib/be/abstractlink.class.php';
+require_once $maindir.'gradebook/lib/be/evallink.class.php';
+require_once $maindir.'gradebook/lib/be/linkfactory.class.php';
 require_once $maindir.'gradebook/lib/be/attendancelink.class.php';
 require_once $maindir.'gradebook/lib/be/category.class.php';
 require_once $maindir.'gradebook/lib/be/dropboxlink.class.php';
 require_once $maindir.'gradebook/lib/be/evaluation.class.php';
 require_once $maindir.'gradebook/lib/be/exerciselink.class.php';
+require_once $maindir.'gradebook/lib/be/dropboxlink.class.php';
+require_once $maindir.'gradebook/lib/be/result.class.php';
 
 
 /**Files inside '/../main/lib/' */
@@ -96,37 +94,52 @@ ob_end_clean();
 /**Problem with this file to test objects*/
 //require_once $maindir.'exercice/exercise.lib.php';
 
+class TestManager {
+	
+/**
+==============================================================================
+		MAIN CODE
+==============================================================================
+*/
+
+/**
+ * This function create in the database a test course and will also load sessions.
+ * This name will be change each time is used in the tests.
+ * @param string	Course name
+ * @return void
+ */
+
+function create_test_course($course_code = 'COURSETEST') {
+	
 /*
 -----------------------------------------------------------
 	Table definitions
 -----------------------------------------------------------
 */
+
 $table_course 		= Database::get_main_table(TABLE_MAIN_COURSE);
 $course_table 		= Database::get_main_table(TABLE_MAIN_COURSE);
 $course_cat_table 	= Database::get_main_table(TABLE_MAIN_CATEGORY);
 
-/*
-==============================================================================
-		MAIN CODE
-==============================================================================
-*/
 global $_configuration, $_user, $_course, $cidReq;
-$cidReq = 'COURSETEST';
+$cidReq = $course_code;
 
 /*
 -----------------------------------------------------------
 	Check if the course exists
 -----------------------------------------------------------
 */
+
 $sql = "SELECT code FROM  $table_course WHERE code = '$cidReq' ";
 $rs = Database::query($sql, __FILE__, __LINE__);
 $row = Database::fetch_row($rs);
 
 /*
 -----------------------------------------------------------
-	Create the course COURSETEST
+	Create the course in the database
 -----------------------------------------------------------
 */
+
 if (empty($row[0])) {
     // create a course
     $course_datos = array(
@@ -159,6 +172,7 @@ $result = Database::query($sql,__FILE__,__LINE__);
 	Create the session
 -----------------------------------------------------------
 */
+
 if (Database::num_rows($result)>0) {
     $cData = Database::fetch_array($result);
     $_cid                            = $cData['code'             ];
@@ -188,7 +202,8 @@ if (Database::num_rows($result)>0) {
 -----------------------------------------------------------
 	Load the session
 -----------------------------------------------------------
-*/  
+*/
+
 $_SESSION['_user']['user_id'] = 1;    
 $_SESSION['is_courseAdmin'] = 1;
 $_SESSION['show'] = showall;
@@ -197,5 +212,49 @@ $_SESSION['show'] = showall;
 -----------------------------------------------------------
 	Load the user
 -----------------------------------------------------------
-*/  
+*/
+
 $_user['user_id'] = $_SESSION['_user']['user_id'];
+}
+
+/**
+ * This function delete the test course from the database and destroy the sessions. 
+ * @param string the course code than will be delete.
+ * @return void
+ */
+
+function delete_test_course($course_code) {
+$code = $course_code;
+	
+/*
+-----------------------------------------------------------
+	Delete the course
+-----------------------------------------------------------
+*/
+	
+$res = CourseManager::delete_course($code);
+$path = api_get_path(SYS_PATH).'archive';
+
+if ($handle = opendir($path)) {
+	while (false !== ($file = readdir($handle))) {
+		if (strpos($file,$code)!==false) {
+			if (is_dir($path.'/'.$file)) {
+				rmdirr($path.'/'.$file);
+			}
+		}
+	}
+	closedir($handle);
+}
+	
+/*
+-----------------------------------------------------------
+	Check api session destroy
+-----------------------------------------------------------
+*/
+	
+if (!headers_sent()) {
+	$res=api_session_destroy();
+	}
+}
+
+}

+ 16 - 12
tests/test_suite.php

@@ -29,11 +29,14 @@
 	Included libraries
 -----------------------------------------------------------
 */
-//Need to start to load the settings in the setup and teardown
+//The global.inc.php be need be load here to can load the settings files
 $incdir = dirname(__FILE__).'/../main/inc/'; 
 require_once $incdir.'global.inc.php';
 
-//Files than need simpletest
+//This file load the functions to create and destroy the course
+require_once api_get_path(SYS_TEST_PATH).'test_manager.inc.php';
+
+//Files than need simpletest to can test
 require_once 'simpletest/unit_tester.php';
 require_once 'simpletest/web_tester.php';
 require_once 'simpletest/mock_objects.php';
@@ -43,11 +46,17 @@ require_once 'simpletest/autorun.php';
 ==============================================================================
 		TEST SUITE
 ==============================================================================
+Start to load the tests files
 */
 
 class TestsSuite extends TestSuite {
+	
     function TestsSuite() {
+    	
+    	/**Name of the test suite*/
     	$this->TestSuite('All tests suite');
+    	
+    	/**Files will be tested*/
 /*		$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/lib/database.lib.test.php');
 		$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/lib/add_course.lib.inc.test.php');
 		$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/lib/course.lib.test.php');
@@ -120,32 +129,27 @@ class TestsSuite extends TestSuite {
         $this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/lib/main_api.lib.test.php');//this file delete the course     
         $this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/lib/debug.lib.inc.test.php');//this file need be to the finish of the tests
        */ 
-       
-        /**This file was removed, now the functions was moved to install.lib*/
-		//$this->addFile(api_get_path(SYS_TEST_PATH).'/main/install/install_upgrade.lib.test.php');
-       
-        /**This files has metadata*/
+            
+        /**This files has metadata, is not available to test*/
         //$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/lib/xht.lib.test.php');
 	    //$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/lib/xmd.lib.test.php');
 	    
-	    /**This files are not used and is not finished implement*/
+	    /**This files are not used and is not finished implement, is not available to test*/
 	    //$this->addFile(api_get_path(SYS_TEST_PATH).'/main/exercice/export/qti/qti_classes.test.php');
 		//$this->addFile(api_get_path(SYS_TEST_PATH).'/main/exercice/export/qti2/qti2_export.test.php');
 		//$this->addFile(api_get_path(SYS_TEST_PATH).'/main/exercice/export/exercise_import.inc.test.php');
 		//$this->addFile(api_get_path(SYS_TEST_PATH).'/main/exercice/export/scorm/scorm_export.test.php');
 		
-		
 		/**EXERCISES**/
 		//$this->addFile(api_get_path(SYS_TEST_PATH).'/main/exercice/answer.class.test.php');
 		//$this->addFile(api_get_path(SYS_TEST_PATH).'/main/exercice/exercise_result.class.test.php');
 		//$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/lib/exercise_show_functions.lib.test.php');
 		//$this->addFile(api_get_path(SYS_TEST_PATH).'/main/exercice/exercise.class.test.php');
-		
-		/**This files have problem with class and call objects*/
+		/**This files have problem with class and call objects, is not available to test
 		//$this->addFile(api_get_path(SYS_TEST_PATH).'/main/exercice/exercise.lib.test.php');
 	  	//$this->addFile(api_get_path(SYS_TEST_PATH).'/main/exercice/fill_blanks.class.test.php');
 	  	//$this->addFile(api_get_path(SYS_TEST_PATH).'/main/exercice/freeanswer.class.test.php');
-	  	
+	  	*/
 	  	
 	  	/**FORUM*/
 	  	//$this->addFile(api_get_path(SYS_TEST_PATH).'main/forum/forumfunction.inc.test.php');