<commit_before># Testing utilities for Google Cloud Platform

## Install

Add `google/cloud-testutils` to the `require-dev` section of your
`composer.json`.

You can also run the following command:

```
$ composer require google/cloud-testutils --dev
```

## Examples

The example test cases are available in
[`test/fixtures/appengine-standard`](https://github.com/GoogleCloudPlatform/php-testutils/tree/master/test/fixtures/appengine-standard) directory.

## Environment variables

There are multiple environment variables to control the behavior of
our test traits.

- `RUN_DEVSERVER_TESTS`:
  Set to `true` if you want to run tests with LocalTestTrait
- `PHP_CGI_PATH`:
  Path to `php-cgi` for running dev_appserver
- `LOCAL_TEST_TARGETS`:
  You can specify multiple yaml files if your test need multiple services.
- `RUN_DEPLOYMENT_TESTS`:
  Set to `true` if you want to run tests with E2eDeploymentTrait
- `GOOGLE_PROJECT_ID`:
  The project id for deploying the application
- `GOOGLE_VERSION_ID`:
  The version id for deploying the application<commit_msg>Renamed the packagist package name in the README<commit_after># Testing utilities for Google Cloud Platform

## Install

Add `google/cloud-tools` to the `require-dev` section of your
`composer.json`.

You can also run the following command:

```
$ composer require google/cloud-tools --dev
```

## Examples

The example test cases are available in
[`test/fixtures/appengine-standard`](https://github.com/GoogleCloudPlatform/php-testutils/tree/master/test/fixtures/appengine-standard) directory.

## Environment variables

There are multiple environment variables to control the behavior of
our test traits.

- `RUN_DEVSERVER_TESTS`:
  Set to `true` if you want to run tests with LocalTestTrait
- `PHP_CGI_PATH`:
  Path to `php-cgi` for running dev_appserver
- `LOCAL_TEST_TARGETS`:
  You can specify multiple yaml files if your test need multiple services.
- `RUN_DEPLOYMENT_TESTS`:
  Set to `true` if you want to run tests with E2eDeploymentTrait
- `GOOGLE_PROJECT_ID`:
  The project id for deploying the application
- `GOOGLE_VERSION_ID`:
  The version id for deploying the application
{'fraction_non_alphanumeric': 0.08290638099673964, 'fraction_numerical': 0.0009315323707498836, 'mean_word_length': 4.868852459016393, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1234081', 'n_tokens_mistral': 659, 'n_tokens_neox': 623, 'n_words': 232}