<commit_before>ExemplifyExtension
==================

[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/richardmiller/ExemplifyExtension/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/richardmiller/ExemplifyExtension/?branch=master)
[![Build Status](https://scrutinizer-ci.com/g/richardmiller/ExemplifyExtension/badges/build.png?b=master)](https://scrutinizer-ci.com/g/richardmiller/ExemplifyExtension/build-status/master)

PhpSpec extension that adds exemplify command to generate examples in specs.

For example, running:

```
bin/phpspec exemplify RMiller/Badger dig
```

And choosing the default option of 'instance method', will add the following example
to the spec/RMiller/BadgerSpec class:

```
public function it_should_dig()
{
    $this->dig();
}
```

This can then be modified to describe the behaviour for the method.

## Installation

Requires:

* PhpSpec 3.0+
* PHP 5.4+

To use 'named constructor' examples , you need to use latest phpspec 2.1@dev.
Otherwise the examples will be created but will not run.

Require the extension:

```
$ composer require --dev rmiller/exemplify-extension:^0.5
```

## Configuration

Activate the extension by specifying its class in your `phpspec.yml`:

```yaml
# phpspec.yml
extensions:
    RMiller\ExemplifyExtension\ExemplifyExtension: ~
```<commit_msg>README: update ExemplifyExtension to RMiller\BehatSpec\Extension namespace for PSR-4<commit_after>ExemplifyExtension
==================

[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/richardmiller/ExemplifyExtension/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/richardmiller/ExemplifyExtension/?branch=master)
[![Build Status](https://scrutinizer-ci.com/g/richardmiller/ExemplifyExtension/badges/build.png?b=master)](https://scrutinizer-ci.com/g/richardmiller/ExemplifyExtension/build-status/master)

PhpSpec extension that adds exemplify command to generate examples in specs.

For example, running:

```
bin/phpspec exemplify RMiller/Badger dig
```

And choosing the default option of 'instance method', will add the following example
to the spec/RMiller/BadgerSpec class:

```
public function it_should_dig()
{
    $this->dig();
}
```

This can then be modified to describe the behaviour for the method.

## Installation

Requires:

* PhpSpec 3.0+
* PHP 5.4+

To use 'named constructor' examples , you need to use latest phpspec 2.1@dev.
Otherwise the examples will be created but will not run.

Require the extension:

```
$ composer require --dev rmiller/exemplify-extension:^0.5
```

## Configuration

Activate the extension by specifying its class in your `phpspec.yml`:

```yaml
# phpspec.yml
extensions:
    RMiller\BehatSpec\Extension\ExemplifyExtension\ExemplifyExtension: ~
```
{'fraction_non_alphanumeric': 0.1272264631043257, 'fraction_numerical': 0.0061795710650672485, 'mean_word_length': 5.414918414918415, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 8, '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': '5148648', 'n_tokens_mistral': 914, 'n_tokens_neox': 864, 'n_words': 221}