diff --git a/tests/phpunit/.generate_test_classes.php.swp b/tests/phpunit/.generate_test_classes.php.swp new file mode 100644 index 00000000000..57d3d38799a Binary files /dev/null and b/tests/phpunit/.generate_test_classes.php.swp differ diff --git a/tests/phpunit/README.txt b/tests/phpunit/README.txt new file mode 100644 index 00000000000..b30d9888566 --- /dev/null +++ b/tests/phpunit/README.txt @@ -0,0 +1,4 @@ +Do not modify these test classes by hand. They will probably get overwritten +with the next automatic generation. Instead, use copies of the existing files +and suffix them with "Custom" to maintain them in the code versioning system. +For example: AccessTestCustom.class.php diff --git a/tests/phpunit/classes/AccessAllTest.class.php b/tests/phpunit/classes/AccessAllTest.class.php new file mode 100644 index 00000000000..e986e23852e --- /dev/null +++ b/tests/phpunit/classes/AccessAllTest.class.php @@ -0,0 +1,76 @@ +object = new AccessAll; + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * @covers AccessAll::instance + * @todo Implement testInstance(). + */ + public function testInstance() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers AccessAll::can_edit + * @todo Implement testCan_edit(). + */ + public function testCan_edit() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers AccessAll::can_view + * @todo Implement testCan_view(). + */ + public function testCan_view() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers AccessAll::authorize + * @todo Implement testAuthorize(). + */ + public function testAuthorize() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } +} diff --git a/tests/phpunit/classes/AccessForbiddenTest.class.php b/tests/phpunit/classes/AccessForbiddenTest.class.php new file mode 100644 index 00000000000..2bc283f8878 --- /dev/null +++ b/tests/phpunit/classes/AccessForbiddenTest.class.php @@ -0,0 +1,76 @@ +object = new AccessForbidden; + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * @covers AccessForbidden::instance + * @todo Implement testInstance(). + */ + public function testInstance() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers AccessForbidden::can_edit + * @todo Implement testCan_edit(). + */ + public function testCan_edit() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers AccessForbidden::can_view + * @todo Implement testCan_view(). + */ + public function testCan_view() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers AccessForbidden::authorize + * @todo Implement testAuthorize(). + */ + public function testAuthorize() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } +} diff --git a/tests/phpunit/classes/AccessTest.class.php b/tests/phpunit/classes/AccessTest.class.php new file mode 100644 index 00000000000..eb3dd35855d --- /dev/null +++ b/tests/phpunit/classes/AccessTest.class.php @@ -0,0 +1,100 @@ +object = new Access; + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * @covers Access::all + * @todo Implement testAll(). + */ + public function testAll() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Access::forbidden + * @todo Implement testForbidden(). + */ + public function testForbidden() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Access::is_token_valid + * @todo Implement testIs_token_valid(). + */ + public function testIs_token_valid() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Access::get_session_token + * @todo Implement testGet_session_token(). + */ + public function testGet_session_token() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Access::get_token + * @todo Implement testGet_token(). + */ + public function testGet_token() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Access::authorize + * @todo Implement testAuthorize(). + */ + public function testAuthorize() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } +} diff --git a/tests/phpunit/classes/AccessTokenTest.class.php b/tests/phpunit/classes/AccessTokenTest.class.php new file mode 100644 index 00000000000..22eccb3eb0d --- /dev/null +++ b/tests/phpunit/classes/AccessTokenTest.class.php @@ -0,0 +1,136 @@ +object = new AccessToken; + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * @covers AccessToken::empty_token + * @todo Implement testEmpty_token(). + */ + public function testEmpty_token() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers AccessToken::parse + * @todo Implement testParse(). + */ + public function testParse() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers AccessToken::create + * @todo Implement testCreate(). + */ + public function testCreate() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers AccessToken::get_id + * @todo Implement testGet_id(). + */ + public function testGet_id() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers AccessToken::get_user_id + * @todo Implement testGet_user_id(). + */ + public function testGet_user_id() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers AccessToken::get_key + * @todo Implement testGet_key(). + */ + public function testGet_key() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers AccessToken::is_empty + * @todo Implement testIs_empty(). + */ + public function testIs_empty() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers AccessToken::is_valid + * @todo Implement testIs_valid(). + */ + public function testIs_valid() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers AccessToken::__toString + * @todo Implement test__toString(). + */ + public function test__toString() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } +} diff --git a/tests/phpunit/classes/CacheTest.class.php b/tests/phpunit/classes/CacheTest.class.php new file mode 100644 index 00000000000..1a3d9cbd0d0 --- /dev/null +++ b/tests/phpunit/classes/CacheTest.class.php @@ -0,0 +1,112 @@ +object = new Cache; + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * @covers Cache::get + * @todo Implement testGet(). + */ + public function testGet() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Cache::has + * @todo Implement testHas(). + */ + public function testHas() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Cache::put + * @todo Implement testPut(). + */ + public function testPut() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Cache::remove + * @todo Implement testRemove(). + */ + public function testRemove() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Cache::clear + * @todo Implement testClear(). + */ + public function testClear() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Cache::path + * @todo Implement testPath(). + */ + public function testPath() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Cache::key + * @todo Implement testKey(). + */ + public function testKey() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } +} diff --git a/tests/phpunit/classes/ConditionalLoginTest.class.php b/tests/phpunit/classes/ConditionalLoginTest.class.php new file mode 100644 index 00000000000..c3c6d36c22f --- /dev/null +++ b/tests/phpunit/classes/ConditionalLoginTest.class.php @@ -0,0 +1,52 @@ +object = new ConditionalLogin; + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * @covers ConditionalLogin::check_conditions + * @todo Implement testCheck_conditions(). + */ + public function testCheck_conditions() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers ConditionalLogin::login + * @todo Implement testLogin(). + */ + public function testLogin() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } +} diff --git a/tests/phpunit/classes/CurrentCourseTest.class.php b/tests/phpunit/classes/CurrentCourseTest.class.php new file mode 100644 index 00000000000..e17d7310b43 --- /dev/null +++ b/tests/phpunit/classes/CurrentCourseTest.class.php @@ -0,0 +1,316 @@ +object = new CurrentCourse; + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * @covers CurrentCourse::instance + * @todo Implement testInstance(). + */ + public function testInstance() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers CurrentCourse::is_empty + * @todo Implement testIs_empty(). + */ + public function testIs_empty() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers CurrentCourse::data + * @todo Implement testData(). + */ + public function testData() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers CurrentCourse::real_id + * @todo Implement testReal_id(). + */ + public function testReal_id() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers CurrentCourse::code + * @todo Implement testCode(). + */ + public function testCode() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers CurrentCourse::name + * @todo Implement testName(). + */ + public function testName() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers CurrentCourse::title + * @todo Implement testTitle(). + */ + public function testTitle() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers CurrentCourse::official_code + * @todo Implement testOfficial_code(). + */ + public function testOfficial_code() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers CurrentCourse::sys_code + * @todo Implement testSys_code(). + */ + public function testSys_code() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers CurrentCourse::path + * @todo Implement testPath(). + */ + public function testPath() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers CurrentCourse::db_name + * @todo Implement testDb_name(). + */ + public function testDb_name() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers CurrentCourse::db_name_glu + * @todo Implement testDb_name_glu(). + */ + public function testDb_name_glu() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers CurrentCourse::titular + * @todo Implement testTitular(). + */ + public function testTitular() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers CurrentCourse::language + * @todo Implement testLanguage(). + */ + public function testLanguage() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers CurrentCourse::category_code + * @todo Implement testCategory_code(). + */ + public function testCategory_code() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers CurrentCourse::category_ame + * @todo Implement testCategory_ame(). + */ + public function testCategory_ame() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers CurrentCourse::visibility + * @todo Implement testVisibility(). + */ + public function testVisibility() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers CurrentCourse::subscribe_allowed + * @todo Implement testSubscribe_allowed(). + */ + public function testSubscribe_allowed() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers CurrentCourse::unsubscribe_allowed + * @todo Implement testUnsubscribe_allowed(). + */ + public function testUnsubscribe_allowed() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers CurrentCourse::activate_legal + * @todo Implement testActivate_legal(). + */ + public function testActivate_legal() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers CurrentCourse::show_score + * @todo Implement testShow_score(). + */ + public function testShow_score() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers CurrentCourse::extrnal_link + * @todo Implement testExtrnal_link(). + */ + public function testExtrnal_link() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers CurrentCourse::user + * @todo Implement testUser(). + */ + public function testUser() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers CurrentCourse::get + * @todo Implement testGet(). + */ + public function testGet() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } +} diff --git a/tests/phpunit/classes/CurrentUserTest.class.php b/tests/phpunit/classes/CurrentUserTest.class.php new file mode 100644 index 00000000000..9413998bf30 --- /dev/null +++ b/tests/phpunit/classes/CurrentUserTest.class.php @@ -0,0 +1,292 @@ +object = new CurrentUser; + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * @covers CurrentUser::instance + * @todo Implement testInstance(). + */ + public function testInstance() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers CurrentUser::data + * @todo Implement testData(). + */ + public function testData() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers CurrentUser::is_anonymous + * @todo Implement testIs_anonymous(). + */ + public function testIs_anonymous() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers CurrentUser::first_name + * @todo Implement testFirst_name(). + */ + public function testFirst_name() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers CurrentUser::last_name + * @todo Implement testLast_name(). + */ + public function testLast_name() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers CurrentUser::email + * @todo Implement testEmail(). + */ + public function testEmail() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers CurrentUser::last_login + * @todo Implement testLast_login(). + */ + public function testLast_login() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers CurrentUser::official_code + * @todo Implement testOfficial_code(). + */ + public function testOfficial_code() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers CurrentUser::picture_uri + * @todo Implement testPicture_uri(). + */ + public function testPicture_uri() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers CurrentUser::user_id + * @todo Implement testUser_id(). + */ + public function testUser_id() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers CurrentUser::language + * @todo Implement testLanguage(). + */ + public function testLanguage() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers CurrentUser::auth_source + * @todo Implement testAuth_source(). + */ + public function testAuth_source() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers CurrentUser::theme + * @todo Implement testTheme(). + */ + public function testTheme() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers CurrentUser::is_platform_admin + * @todo Implement testIs_platform_admin(). + */ + public function testIs_platform_admin() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers CurrentUser::is_session_admin + * @todo Implement testIs_session_admin(). + */ + public function testIs_session_admin() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers CurrentUser::is_allowed_to_create_course + * @todo Implement testIs_allowed_to_create_course(). + */ + public function testIs_allowed_to_create_course() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers CurrentUser::is_course_admin + * @todo Implement testIs_course_admin(). + */ + public function testIs_course_admin() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers CurrentUser::is_course_member + * @todo Implement testIs_course_member(). + */ + public function testIs_course_member() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers CurrentUser::is_allowed_in_course + * @todo Implement testIs_allowed_in_course(). + */ + public function testIs_allowed_in_course() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers CurrentUser::is_course_coach + * @todo Implement testIs_course_coach(). + */ + public function testIs_course_coach() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers CurrentUser::is_course_tutor + * @todo Implement testIs_course_tutor(). + */ + public function testIs_course_tutor() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers CurrentUser::get + * @todo Implement testGet(). + */ + public function testGet() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } +} diff --git a/tests/phpunit/classes/CustomPagesTest.class.php b/tests/phpunit/classes/CustomPagesTest.class.php new file mode 100644 index 00000000000..a9f2988a5e5 --- /dev/null +++ b/tests/phpunit/classes/CustomPagesTest.class.php @@ -0,0 +1,76 @@ +object = new CustomPages; + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * @covers CustomPages::enabled + * @todo Implement testEnabled(). + */ + public function testEnabled() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers CustomPages::path + * @todo Implement testPath(). + */ + public function testPath() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers CustomPages::display + * @todo Implement testDisplay(). + */ + public function testDisplay() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers CustomPages::getURLImages + * @todo Implement testGetURLImages(). + */ + public function testGetURLImages() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } +} diff --git a/tests/phpunit/classes/EventsMailTest.class.php b/tests/phpunit/classes/EventsMailTest.class.php new file mode 100644 index 00000000000..78db857824b --- /dev/null +++ b/tests/phpunit/classes/EventsMailTest.class.php @@ -0,0 +1,52 @@ +object = new EventsMail; + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * @covers EventsMail::send_mail + * @todo Implement testSend_mail(). + */ + public function testSend_mail() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers EventsMail::check_if_using_class + * @todo Implement testCheck_if_using_class(). + */ + public function testCheck_if_using_class() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } +} diff --git a/tests/phpunit/classes/FileStoreTest.class.php b/tests/phpunit/classes/FileStoreTest.class.php new file mode 100644 index 00000000000..8673f4333eb --- /dev/null +++ b/tests/phpunit/classes/FileStoreTest.class.php @@ -0,0 +1,112 @@ +object = new FileStore; + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * @covers FileStore::course + * @todo Implement testCourse(). + */ + public function testCourse() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers FileStore::root + * @todo Implement testRoot(). + */ + public function testRoot() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers FileStore::accept + * @todo Implement testAccept(). + */ + public function testAccept() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers FileStore::add + * @todo Implement testAdd(). + */ + public function testAdd() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers FileStore::remove + * @todo Implement testRemove(). + */ + public function testRemove() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers FileStore::get + * @todo Implement testGet(). + */ + public function testGet() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers FileStore::new_id + * @todo Implement testNew_id(). + */ + public function testNew_id() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } +} diff --git a/tests/phpunit/classes/JavascriptTest.class.php b/tests/phpunit/classes/JavascriptTest.class.php new file mode 100644 index 00000000000..92e32f03630 --- /dev/null +++ b/tests/phpunit/classes/JavascriptTest.class.php @@ -0,0 +1,76 @@ +object = new Javascript; + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * @covers Javascript::minify + * @todo Implement testMinify(). + */ + public function testMinify() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Javascript::get_lang + * @todo Implement testGet_lang(). + */ + public function testGet_lang() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Javascript::tag + * @todo Implement testTag(). + */ + public function testTag() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Javascript::tag_code + * @todo Implement testTag_code(). + */ + public function testTag_code() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } +} diff --git a/tests/phpunit/classes/LoginRedirectionTest.class.php b/tests/phpunit/classes/LoginRedirectionTest.class.php new file mode 100644 index 00000000000..e67dc89fc83 --- /dev/null +++ b/tests/phpunit/classes/LoginRedirectionTest.class.php @@ -0,0 +1,40 @@ +object = new LoginRedirection; + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * @covers LoginRedirection::redirect + * @todo Implement testRedirect(). + */ + public function testRedirect() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } +} diff --git a/tests/phpunit/classes/PageTest.class.php b/tests/phpunit/classes/PageTest.class.php new file mode 100644 index 00000000000..9f79d4ec282 --- /dev/null +++ b/tests/phpunit/classes/PageTest.class.php @@ -0,0 +1,184 @@ +object = new Page; + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * @covers Page::create + * @todo Implement testCreate(). + */ + public function testCreate() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Page::header + * @todo Implement testHeader(). + */ + public function testHeader() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Page::title + * @todo Implement testTitle(). + */ + public function testTitle() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Page::breadcrumbs + * @todo Implement testBreadcrumbs(). + */ + public function testBreadcrumbs() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Page::help + * @todo Implement testHelp(). + */ + public function testHelp() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Page::message + * @todo Implement testMessage(). + */ + public function testMessage() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Page::warning + * @todo Implement testWarning(). + */ + public function testWarning() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Page::error + * @todo Implement testError(). + */ + public function testError() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Page::content + * @todo Implement testContent(). + */ + public function testContent() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Page::__toString + * @todo Implement test__toString(). + */ + public function test__toString() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Page::display + * @todo Implement testDisplay(). + */ + public function testDisplay() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Page::display_header + * @todo Implement testDisplay_header(). + */ + public function testDisplay_header() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Page::display_footer + * @todo Implement testDisplay_footer(). + */ + public function testDisplay_footer() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } +} diff --git a/tests/phpunit/classes/PluginTest.class.php b/tests/phpunit/classes/PluginTest.class.php new file mode 100644 index 00000000000..ca724195be4 --- /dev/null +++ b/tests/phpunit/classes/PluginTest.class.php @@ -0,0 +1,232 @@ +object = new Plugin; + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * @covers Plugin::get_info + * @todo Implement testGet_info(). + */ + public function testGet_info() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Plugin::get_name + * @todo Implement testGet_name(). + */ + public function testGet_name() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Plugin::get_title + * @todo Implement testGet_title(). + */ + public function testGet_title() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Plugin::get_comment + * @todo Implement testGet_comment(). + */ + public function testGet_comment() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Plugin::get_version + * @todo Implement testGet_version(). + */ + public function testGet_version() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Plugin::get_author + * @todo Implement testGet_author(). + */ + public function testGet_author() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Plugin::get_css + * @todo Implement testGet_css(). + */ + public function testGet_css() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Plugin::get_settings_form + * @todo Implement testGet_settings_form(). + */ + public function testGet_settings_form() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Plugin::get + * @todo Implement testGet(). + */ + public function testGet() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Plugin::get_settings + * @todo Implement testGet_settings(). + */ + public function testGet_settings() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Plugin::get_lang_plugin_exists + * @todo Implement testGet_lang_plugin_exists(). + */ + public function testGet_lang_plugin_exists() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Plugin::get_lang + * @todo Implement testGet_lang(). + */ + public function testGet_lang() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Plugin::course_install + * @todo Implement testCourse_install(). + */ + public function testCourse_install() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Plugin::install_course_fields + * @todo Implement testInstall_course_fields(). + */ + public function testInstall_course_fields() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Plugin::uninstall_course_fields + * @todo Implement testUninstall_course_fields(). + */ + public function testUninstall_course_fields() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Plugin::install_course_fields_in_all_courses + * @todo Implement testInstall_course_fields_in_all_courses(). + */ + public function testInstall_course_fields_in_all_courses() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Plugin::uninstall_course_fields_in_all_courses + * @todo Implement testUninstall_course_fields_in_all_courses(). + */ + public function testUninstall_course_fields_in_all_courses() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } +} diff --git a/tests/phpunit/classes/ResponseTest.class.php b/tests/phpunit/classes/ResponseTest.class.php new file mode 100644 index 00000000000..401dab21140 --- /dev/null +++ b/tests/phpunit/classes/ResponseTest.class.php @@ -0,0 +1,40 @@ +object = new Response; + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * @covers Response::not_found + * @todo Implement testNot_found(). + */ + public function testNot_found() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } +} diff --git a/tests/phpunit/classes/ResultSetTest.class.php b/tests/phpunit/classes/ResultSetTest.class.php new file mode 100644 index 00000000000..ad92b81925a --- /dev/null +++ b/tests/phpunit/classes/ResultSetTest.class.php @@ -0,0 +1,196 @@ +object = new ResultSet; + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * @covers ResultSet::create + * @todo Implement testCreate(). + */ + public function testCreate() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers ResultSet::sql + * @todo Implement testSql(). + */ + public function testSql() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers ResultSet::count + * @todo Implement testCount(). + */ + public function testCount() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers ResultSet::first + * @todo Implement testFirst(). + */ + public function testFirst() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers ResultSet::limit + * @todo Implement testLimit(). + */ + public function testLimit() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers ResultSet::orderby + * @todo Implement testOrderby(). + */ + public function testOrderby() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers ResultSet::return_type + * @todo Implement testReturn_type(). + */ + public function testReturn_type() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers ResultSet::current + * @todo Implement testCurrent(). + */ + public function testCurrent() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers ResultSet::key + * @todo Implement testKey(). + */ + public function testKey() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers ResultSet::next + * @todo Implement testNext(). + */ + public function testNext() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers ResultSet::rewind + * @todo Implement testRewind(). + */ + public function testRewind() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers ResultSet::valid + * @todo Implement testValid(). + */ + public function testValid() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers ResultSet::__clone + * @todo Implement test__clone(). + */ + public function test__clone() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers ResultSet::reset + * @todo Implement testReset(). + */ + public function testReset() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } +} diff --git a/tests/phpunit/classes/SessionHandlerTest.class.php b/tests/phpunit/classes/SessionHandlerTest.class.php new file mode 100644 index 00000000000..7b5f0c1ee0b --- /dev/null +++ b/tests/phpunit/classes/SessionHandlerTest.class.php @@ -0,0 +1,136 @@ +object = new SessionHandler; + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * @covers SessionHandler::sqlConnect + * @todo Implement testSqlConnect(). + */ + public function testSqlConnect() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers SessionHandler::sqlClose + * @todo Implement testSqlClose(). + */ + public function testSqlClose() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers SessionHandler::sqlQuery + * @todo Implement testSqlQuery(). + */ + public function testSqlQuery() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers SessionHandler::open + * @todo Implement testOpen(). + */ + public function testOpen() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers SessionHandler::close + * @todo Implement testClose(). + */ + public function testClose() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers SessionHandler::read + * @todo Implement testRead(). + */ + public function testRead() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers SessionHandler::write + * @todo Implement testWrite(). + */ + public function testWrite() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers SessionHandler::destroy + * @todo Implement testDestroy(). + */ + public function testDestroy() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers SessionHandler::garbage + * @todo Implement testGarbage(). + */ + public function testGarbage() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } +} diff --git a/tests/phpunit/classes/TableSortTest.class.php b/tests/phpunit/classes/TableSortTest.class.php new file mode 100644 index 00000000000..28205b67c26 --- /dev/null +++ b/tests/phpunit/classes/TableSortTest.class.php @@ -0,0 +1,52 @@ +object = new TableSort; + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * @covers TableSort::sort_table + * @todo Implement testSort_table(). + */ + public function testSort_table() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers TableSort::sort_table_config + * @todo Implement testSort_table_config(). + */ + public function testSort_table_config() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } +} diff --git a/tests/phpunit/classes/UriTest.class.php b/tests/phpunit/classes/UriTest.class.php new file mode 100644 index 00000000000..5162df9dec0 --- /dev/null +++ b/tests/phpunit/classes/UriTest.class.php @@ -0,0 +1,100 @@ +object = new Uri; + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * @covers Uri::chamilo + * @todo Implement testChamilo(). + */ + public function testChamilo() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Uri::www + * @todo Implement testWww(). + */ + public function testWww() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Uri::here + * @todo Implement testHere(). + */ + public function testHere() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Uri::url + * @todo Implement testUrl(). + */ + public function testUrl() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Uri::params + * @todo Implement testParams(). + */ + public function testParams() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Uri::course_params + * @todo Implement testCourse_params(). + */ + public function testCourse_params() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } +} diff --git a/tests/phpunit/classes/UserApiKeyManagerTest.class.php b/tests/phpunit/classes/UserApiKeyManagerTest.class.php new file mode 100644 index 00000000000..8853a200211 --- /dev/null +++ b/tests/phpunit/classes/UserApiKeyManagerTest.class.php @@ -0,0 +1,88 @@ +object = new UserApiKeyManager; + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * @covers UserApiKeyManager::default_service + * @todo Implement testDefault_service(). + */ + public function testDefault_service() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers UserApiKeyManager::end_of_time + * @todo Implement testEnd_of_time(). + */ + public function testEnd_of_time() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers UserApiKeyManager::get_by_id + * @todo Implement testGet_by_id(). + */ + public function testGet_by_id() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers UserApiKeyManager::create_temp_token + * @todo Implement testCreate_temp_token(). + */ + public function testCreate_temp_token() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers UserApiKeyManager::create_token + * @todo Implement testCreate_token(). + */ + public function testCreate_token() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } +} diff --git a/tests/phpunit/classes/ZipTest.class.php b/tests/phpunit/classes/ZipTest.class.php new file mode 100644 index 00000000000..6085ce5524c --- /dev/null +++ b/tests/phpunit/classes/ZipTest.class.php @@ -0,0 +1,100 @@ +object = new Zip; + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * @covers Zip::pool + * @todo Implement testPool(). + */ + public function testPool() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Zip::create + * @todo Implement testCreate(). + */ + public function testCreate() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Zip::get_path + * @todo Implement testGet_path(). + */ + public function testGet_path() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Zip::get_hash + * @todo Implement testGet_hash(). + */ + public function testGet_hash() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Zip::add + * @todo Implement testAdd(). + */ + public function testAdd() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Zip::callback + * @todo Implement testCallback(). + */ + public function testCallback() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } +} diff --git a/tests/phpunit/classes/dbTest.class.php b/tests/phpunit/classes/dbTest.class.php new file mode 100644 index 00000000000..9e77ce64b08 --- /dev/null +++ b/tests/phpunit/classes/dbTest.class.php @@ -0,0 +1,172 @@ +object = new db; + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * @covers db::instance + * @todo Implement testInstance(). + */ + public function testInstance() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers db::save + * @todo Implement testSave(). + */ + public function testSave() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers db::remove + * @todo Implement testRemove(). + */ + public function testRemove() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers db::flush + * @todo Implement testFlush(). + */ + public function testFlush() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers db::test + * @todo Implement testTest(). + */ + public function testTest() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers db::em + * @todo Implement testEm(). + */ + public function testEm() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers db::get_repository + * @todo Implement testGet_repository(). + */ + public function testGet_repository() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers db::get_entity_path + * @todo Implement testGet_entity_path(). + */ + public function testGet_entity_path() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers db::is_production + * @todo Implement testIs_production(). + */ + public function testIs_production() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers db::is_dev + * @todo Implement testIs_dev(). + */ + public function testIs_dev() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers db::generate_model + * @todo Implement testGenerate_model(). + */ + public function testGenerate_model() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers db::update_schema + * @todo Implement testUpdate_schema(). + */ + public function testUpdate_schema() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } +} diff --git a/tests/phpunit/generate_test_classes.php b/tests/phpunit/generate_test_classes.php new file mode 100644 index 00000000000..3bcf8765680 --- /dev/null +++ b/tests/phpunit/generate_test_classes.php @@ -0,0 +1,33 @@ +