<commit_before># Riak CS AWS PHP SDK Tests

## Dependencies

Install [Composer](https://getcomposer.org/):

```bash
$ curl -s https://getcomposer.org/installer | php && mv -v composer.phar /usr/local/bin/composer
```

**Note**: If you attempt to install Composer on PHP 5.3.x, you may need to add
`-d detect_unicode=Off` as an argument to the `php` command above.

Install dependencies:

```bash
$ composer install --dev
```

## Configuration

Copy the configuration file in `client_tests/php/test_services.json.sample` to
`client_tests/php/test_services.json` and add your `key` and `secret`. You may
also need to edit the `base_url` and  `curl.options` settings if Riak CS isn't
running locally.

```javascript
{
  "includes" : ["_aws"],
  "services" : {
    "default_settings" : {
      "params" : {
        "key"    : "<KEY>",
        "secret" : "<KEY>
        "region" : "us-east-1",
        "base_url" : "http://s3.amazonaws.com",
        "curl.options": {"CURLOPT_PROXY" : "localhost:8080"},
        "scheme" : "http"
      }
    }
  }
}
```

## Execution

```bash
$ cd client_tests/php && ./phpunit
```<commit_msg>Don't require editing of `test_services.json`<commit_after># Riak CS AWS PHP SDK Tests

## Dependencies

**Note**: The test is currently only known to work on php 5.4.x.

Install [Composer](https://getcomposer.org/):

```bash
$ curl -s https://getcomposer.org/installer | php && mv -v composer.phar /usr/local/bin/composer
```

**Note**: If you attempt to install Composer on PHP 5.3.x, you may need to add
`-d detect_unicode=Off` as an argument to the `php` command above.

Install dependencies:

```bash
$ composer install --dev
```

## Execution

```bash
$ cd client_tests/php && ./phpunit
```
{'fraction_non_alphanumeric': 0.1589057043073341, 'fraction_numerical': 0.006984866123399301, 'mean_word_length': 3.464935064935065, 'pattern_counts': {'":': 1, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 4, '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': '1430923', 'n_tokens_mistral': 617, 'n_tokens_neox': 576, 'n_words': 177}