Example #1
0
 /**
  * Make sure Mockery doesn't have anything set up already.
  */
 public static function setUp()
 {
     if (self::$__bootstrapped) {
         \Mockery::close();
         self::$event_manager = new \WP_Mock\EventManager();
         self::$function_manager = new \WP_Mock\Functions();
     } else {
         self::bootstrap();
     }
 }