<commit_before>Behat Common Contexts
=====================

[![Build Status](https://travis-ci.org/novaway/BehatCommonContext.svg)](https://travis-ci.org/novaway/BehatCommonContext)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/novaway/BehatCommonContext/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/novaway/BehatCommonContext/?branch=master)

Provide most common behat tests.

## Installation

The extension requires :

* Behat
* Mink extension

## Usage

In `behat.yml, enable desired contexts:

```yaml
default:
    suites:
        default:
            contexts:
                - nwcontext:select2

    # ...
    extensions:
        Novaway\CommonContexts\Extension: ~
```
<commit_msg>Add composer line in README<commit_after>Behat Common Contexts
=====================

[![Build Status](https://travis-ci.org/novaway/BehatCommonContext.svg)](https://travis-ci.org/novaway/BehatCommonContext)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/novaway/BehatCommonContext/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/novaway/BehatCommonContext/?branch=master)
[![Latest Stable Version](https://poser.pugx.org/novaway/common-contexts/v/stable.png)](https://packagist.org/packages/novaway/common-contexts)

Provide most common behat tests.

## Installation

The extension requires :

* Behat
* Mink extension

## Usage

Add dependencies with Composer :

``` bash
$ php composer.phar require novaway/common-contexts "~2.0"
```

In `behat.yml`, enable desired contexts:

```yaml
default:
    suites:
        default:
            contexts:
                - nwcontext:select2

    # ...
    extensions:
        Novaway\CommonContexts\Extension: ~
```

{'fraction_non_alphanumeric': 0.16042154566744732, 'fraction_numerical': 0.00234192037470726, 'mean_word_length': 3.953623188405797, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 10, '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': '4678678', 'n_tokens_mistral': 579, 'n_tokens_neox': 561, 'n_words': 85}