12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- <?php
- class TestInstallUpgrade extends UnitTestCase{
- public function TestInstallUpgrade() {
- $this->UnitTestCase('testing the function used by '.
- 'the install and upgrade scripts');
- }
- public function testSetFileFolderPermissions() {
- $res = set_file_folder_permissions();
- $this->assertTrue(is_null($res));
- $this->assertNull($res);
-
- }
-
- public function testSplitSqlFile() {
- $ret='';
- $sql='';
- $res = split_sql_file($ret, $sql);
- $this->assertTrue($res);
- $this->assertTrue(is_bool($res));
- $this->assertTrue($res===true);
- }
- public function testMyDirectoryToArray() {
- $chamilo_path_folder= api_get_path(SYS_PATH);
- $directory= $chamilo_path_folder.'home';
- $res = my_directory_to_array($directory);
- $this->assertTrue(is_array($res));
- }
-
- }
- ?>
|