protected function tearDown() { if (!empty($this->mock)) { $this->mock->disable(); unset($this->mock); } }