classes/PHPMock.php
public function registerForTearDown(Deactivatable $deactivatable)
    {
        $result = $this->getTestResultObject();
        $result->addListener(new MockDisabler($deactivatable));
    }
public function registerForTearDown(Deactivatable $deactivatable)
    {
        $result = $this->getTestResultObject();
        $result->addListener(new MockDisabler($deactivatable));
    }
Automatically disable function mocks after the test was run.

If you use getFunctionMock() you don't need this method. This method
is meant for a Deactivatable (e.g. a MockEnvironment) which was
directly created with PHPMock's API.

@param Deactivatable $deactivatable The function mocks.