当前位置: 首页>>代码示例>>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;未经允许,请勿转载。