<commit_before>Custom MVC App with Users and Notepads tested with Behat/Mink and PHPUnit+Mockery
===

I wanted first to create this small real world project and use it as a template later for making the same but with
TDD and BDD tests in mind. I expect the tests to be a little different when approached that way.

I wanted to create this complete PHP application and see what I will need to test it, like what composer.json
configuration as well as the Jenkins CI PHP configuration and tools I used here.

I discovered some interesting for me things in the process about Behat, Mockery, Ant and Composer.

Requirements
---

You only need PHP CLI to work with and test this application.

The PHP version should be at least 5.5.0.

The PHP extentsions used are: sqlite xsl curl xdebug.

The app alone needs only: PHP CLI and the sqlite extension.

The phpdox tool needs the xsl extension.

The instaclick/php-webdriver needs the curl extension.

A phpunit test(and probably the coverage creation) needs the xdebug extension.


Try the application.
---
<commit_msg>Added build and coverage badges<commit_after>Custom MVC App with Users and Notepads tested with Behat/Mink and PHPUnit+Mockery
===

[![Build Status](https://travis-ci.org/iliyan-trifonov/mvc-behat-phpunit.svg?branch=master)](https://travis-ci.org/iliyan-trifonov/mvc-behat-phpunit)
[![Coverage Status](https://img.shields.io/coveralls/iliyan-trifonov/mvc-behat-phpunit.svg)](https://coveralls.io/r/iliyan-trifonov/mvc-behat-phpunit)

I wanted first to create this small real world project and use it as a template later for making the same but with
TDD and BDD tests in mind. I expect the tests to be a little different when approached that way.

I wanted to create this complete PHP application and see what I will need to test it, like what composer.json
configuration as well as the Jenkins CI PHP configuration and tools I used here.

I discovered some interesting for me things in the process about Behat, Mockery, Ant and Composer.

Requirements
---

You only need PHP CLI to work with and test this application.

The PHP version should be at least 5.5.0.

The PHP extentsions used are: sqlite xsl curl xdebug.

The app alone needs only: PHP CLI and the sqlite extension.

The phpdox tool needs the xsl extension.

The instaclick/php-webdriver needs the curl extension.

A phpunit test(and probably the coverage creation) needs the xdebug extension.


Try the application.
---

{'fraction_non_alphanumeric': 0.05682747342600163, 'fraction_numerical': 0.0024529844644317253, 'mean_word_length': 4.173361522198731, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5840274', 'n_tokens_mistral': 701, 'n_tokens_neox': 678, 'n_words': 352}