/** * Unsets the instance, so a new one will be created. */ public function unsetInstance() { self::$_instance = null; }
/** * Wrapper class for all stream functions. * Facilitates mocking/stubbing stream operations in unit tests. */ private function _wrapper() { return Pheanstalk_Socket_StreamFunctions::instance(); }
public function tearDown() { Pheanstalk_Socket_StreamFunctions::unsetInstance(); }