本文整理匯總了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();
}