/**
  * Loads and initiates phpunit, based on the available phpunit version.
  *
  * @return PhpUnitWrapper Instance of the php-wrapper class
  */
 public static function inst()
 {
     if (self::$phpunit_wrapper == null) {
         if (fileExistsInIncludePath("/PHPUnit/Autoload.php")) {
             self::$phpunit_wrapper = new PhpUnitWrapper_3_5();
         } else {
             if (fileExistsInIncludePath("/PHPUnit/Framework.php")) {
                 self::$phpunit_wrapper = new PhpUnitWrapper_3_4();
             } else {
                 self::$phpunit_wrapper = new PhpUnitWrapper();
             }
         }
         self::$phpunit_wrapper->init();
     }
     return self::$phpunit_wrapper;
 }
 /**
  * Loads and initiates phpunit, based on the available phpunit version.
  *
  * @return PhpUnitWrapper Instance of the php-wrapper class
  */
 public static function inst()
 {
     if (self::$phpunit_wrapper == null) {
         // Loaded via autoloader, composer or other generic
         if (class_exists('PHPUnit_Runner_Version')) {
             self::$phpunit_wrapper = new PhpUnitWrapper_Generic();
         } else {
             if (fileExistsInIncludePath("/PHPUnit/Autoload.php")) {
                 self::$phpunit_wrapper = new PhpUnitWrapper_3_5();
             } else {
                 if (fileExistsInIncludePath("/PHPUnit/Framework.php")) {
                     self::$phpunit_wrapper = new PhpUnitWrapper_3_4();
                 } else {
                     self::$phpunit_wrapper = new PhpUnitWrapper();
                 }
             }
         }
         self::$phpunit_wrapper->init();
     }
     return self::$phpunit_wrapper;
 }