diff --git a/tests/main/inc/lib/main_api.lib.test.php b/tests/main/inc/lib/main_api.lib.test.php index 6b59a6ccca..fd41d95900 100755 --- a/tests/main/inc/lib/main_api.lib.test.php +++ b/tests/main/inc/lib/main_api.lib.test.php @@ -112,7 +112,7 @@ class TestMainApi extends UnitTestCase { function testApiGetCoursePathReturnFalseWhenOutOfCoursePathContext(){ $res = api_get_course_path(); - $this->assertNotEmpty($res); + $this->assertFalse(empty($res)); } function testApiGetCourseSettingReturnFalseWhenOutOfCourseSeetingContext(){ @@ -381,7 +381,7 @@ class TestMainApi extends UnitTestCase { api_display_tool_view_option(); $res = ob_get_contents(); ob_end_clean(); - $this->assertNotEmpty($res); + $this->assertFalse(empty($res)); } function testApiDisplayArray(){