本文整理汇总了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();
}
示例3: tearDown
protected function tearDown()
{
$this->teamwork = null;
$this->course = null;
$this->cm = null;
$this->context = null;
parent::tearDown();
}
示例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();
}
示例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);
}
}
示例6: tearDown
public function tearDown()
{
$this->revert_to_real_course();
parent::tearDown();
}
示例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();
}
示例9: tearDown
/**
* Set timezone back to default.
*/
protected function tearDown()
{
date_default_timezone_set($this->systemdefaulttimezone);
parent::tearDown();
}
示例10: tearDown
protected function tearDown()
{
$this->testpage = null;
$this->blockmanager = null;
parent::tearDown();
}
示例11: tearDown
protected function tearDown()
{
ini_set('error_log', $this->oldlog);
parent::tearDown();
}
示例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();
}
示例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();
}