Com example

$instances = [];
    $instances[][] = new Php();

    // If valid PECL extensions exists add to list.     if (function_exists('uuid_create') && !function_exists('uuid_make')) {
      $instances[][] = new Pecl();
    }

    // If we are on Windows add the com implementation as well.     if (function_exists('com_create_guid')) {
      $instances[][] = new Com();
    }

    return $instances;
  }

  /** * Tests UUID validation. * * @param string $uuid * The uuid to check against. * @param bool $is_valid * Whether the uuid is valid or not. * @param string $message * The message to display on failure. * * @dataProvider providerTestValidation */
Home | Imprint | This part of the site doesn't use cookies.