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