mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Free some memory in unit tests
This commit is contained in:
parent
87677d7004
commit
8bfdcdb637
1 changed files with 14 additions and 0 deletions
|
@ -418,4 +418,18 @@ abstract class ControllerTestCase extends CakeTestCase {
|
|||
return $this->controller;
|
||||
}
|
||||
|
||||
/**
|
||||
* Unsets some properties to free memory.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function tearDown() {
|
||||
parent::tearDown();
|
||||
unset($this->contents);
|
||||
unset($this->controller);
|
||||
unset($this->headers);
|
||||
unset($this->result);
|
||||
unset($this->view);
|
||||
unset($this->vars);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue