當前位置: 首頁>>代碼示例>>PHP>>正文


PHP advanced_testcase::tearDown方法代碼示例

本文整理匯總了PHP中advanced_testcase::tearDown方法的典型用法代碼示例。如果您正苦於以下問題:PHP advanced_testcase::tearDown方法的具體用法?PHP advanced_testcase::tearDown怎麽用?PHP advanced_testcase::tearDown使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在advanced_testcase的用法示例。


在下文中一共展示了advanced_testcase::tearDown方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: tearDown

 protected function tearDown()
 {
     $this->databasehelper = null;
     $this->course = null;
     $this->users = null;
     $this->resource = null;
     parent::tearDown();
 }
開發者ID:julenpardo,項目名稱:moodle-block_mycourse_recommendations,代碼行數:8,代碼來源:cosine_similarity_associator_test.php

示例2: tearDown

 /**
  * Tear down required for all notification tests.
  *
  * This includes emptying the list of notifications on the session, resetting any session which exists, and setting
  * up a new moodle_page object.
  */
 public function tearDown()
 {
     global $PAGE, $SESSION;
     $PAGE = null;
     \core\session\manager::init_empty_session();
     $SESSION->notifications = [];
     parent::tearDown();
 }
開發者ID:evltuma,項目名稱:moodle,代碼行數:14,代碼來源:notification_test.php

示例3: tearDown

 protected function tearDown()
 {
     $this->teamwork = null;
     $this->course = null;
     $this->cm = null;
     $this->context = null;
     parent::tearDown();
 }
開發者ID:Gavinthisisit,項目名稱:Moodle,代碼行數:8,代碼來源:events_test.php

示例4: tearDown

 protected function tearDown()
 {
     $this->db = null;
     $this->previouscourseattributes = null;
     $this->previouscourses = null;
     $this->currentyear = null;
     $this->currentcourseattributes = null;
     $this->currentcourse = null;
     parent::tearDown();
 }
開發者ID:julenpardo,項目名稱:moodle-block_mycourse_recommendations,代碼行數:10,代碼來源:course_filter_test.php

示例5: tearDown

 /**
  * Cleans things up after this test case has run.
  */
 protected function tearDown()
 {
     global $SESSION;
     parent::tearDown();
     if ($this->initiallang !== null) {
         $SESSION->lang = $this->initiallang;
         $this->initiallang = null;
     } else {
         unset($SESSION->lang);
     }
 }
開發者ID:evltuma,項目名稱:moodle,代碼行數:14,代碼來源:collator_test.php

示例6: tearDown

 public function tearDown()
 {
     $this->revert_to_real_course();
     parent::tearDown();
 }
開發者ID:MoodleMetaData,項目名稱:MoodleMetaData,代碼行數:5,代碼來源:coreconfig_test.php

示例7: tearDown

 protected function tearDown()
 {
     parent::tearDown();
     null;
 }
開發者ID:julenpardo,項目名稱:moodle-block_mycourse_recommendations,代碼行數:5,代碼來源:recommendations_renderer_test.php

示例8: tearDown

 /**
  * Delete temporary entries from the database
  * @return void
  */
 protected function tearDown() {
     events_uninstall('unittest');
     parent::tearDown();
 }
開發者ID:robadobdob,項目名稱:moodle,代碼行數:8,代碼來源:eventslib_test.php

示例9: tearDown

 /**
  * Set timezone back to default.
  */
 protected function tearDown()
 {
     date_default_timezone_set($this->systemdefaulttimezone);
     parent::tearDown();
 }
開發者ID:MoodleMetaData,項目名稱:MoodleMetaData,代碼行數:8,代碼來源:cronhelper_test.php

示例10: tearDown

 protected function tearDown()
 {
     $this->testpage = null;
     $this->blockmanager = null;
     parent::tearDown();
 }
開發者ID:EmmanuelYupit,項目名稱:educursos,代碼行數:6,代碼來源:blocklib_test.php

示例11: tearDown

 protected function tearDown()
 {
     ini_set('error_log', $this->oldlog);
     parent::tearDown();
 }
開發者ID:masaterutakeno,項目名稱:MoodleMobile,代碼行數:5,代碼來源:ajaxlib_test.php

示例12: tearDown

 public function tearDown()
 {
     $this->recommendator = null;
     parent::tearDown();
 }
開發者ID:julenpardo,項目名稱:moodle-block_mycourse_recommendations,代碼行數:5,代碼來源:simple_recommendator_test.php

示例13: tearDown

 /**
  * remove_category_plugin_values
  * Teardown function for this test suite's test cases.
  * This gets run for each test* function in this class
  */
 protected function tearDown()
 {
     // Todo teardown our tables and data.
     $this->revert_to_real_course();
     parent::tearDown();
 }
開發者ID:MoodleMetaData,項目名稱:MoodleMetaData,代碼行數:11,代碼來源:locallib_test.php

示例14: tearDown

 protected function tearDown()
 {
     $this->recommendator = null;
     parent::tearDown();
 }
開發者ID:julenpardo,項目名稱:moodle-block_mycourse_recommendations,代碼行數:5,代碼來源:abstract_recommendator_test.php

示例15: tearDown

 protected function tearDown()
 {
     $this->matrix;
     parent::tearDown();
 }
開發者ID:julenpardo,項目名稱:moodle-block_mycourse_recommendations,代碼行數:5,代碼來源:decimal_matrix_test.php


注:本文中的advanced_testcase::tearDown方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。