<commit_before>slim-unit-testing-example
=========================

Unit Testing SlimPHP - Example Project

Thanks must be given to [<NAME>][njh] for his work in this
[integration testing harness][njh_test].


[njh]: https://github.com/njh
[njh_test]: https://github.com/njh/njh.me/blob/master/test/IntegrationTest.php<commit_msg>Update README file with a new introduction<commit_after>
Slim Unit Testing Example
================================================================================

SlimPHP is a great framework with a small footprint and everything you need to
build fast applications. I've found it particularly well suited to delivering
data to [BackboneJS][bb] applications.

However, I haven't found a great deal of information about integration and unit
testing with Slim, and have developed my own approach. I've refactored and
introduced it into this sample application. I hope it will help others on their
path to using this great framework.

# Installation

Run `composer install` and then `phpunit`. This application assumes that you
have `phpunit` installed globally on your system. This application can be
installed to run as a functioning website, use the sample config files in the
`build/` folder for this.

# Concepts

# Unit Testing vs. Integration Testing

# Developing New Tests

# Thanks

Thanks must be given to [<NAME>][njh] for his work in this
[integration testing harness][njh_test].

[bb]: http://backbonejs.org
[njh]: https://github.com/njh
[njh_test]: https://github.com/njh/njh.me/blob/master/test/IntegrationTest.php
{'fraction_non_alphanumeric': 0.14304041051956382, 'fraction_numerical': 0.0, 'mean_word_length': 5.24, 'pattern_counts': {'":': 0, '<': 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': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7498232', 'n_tokens_mistral': 450, 'n_tokens_neox': 410, 'n_words': 179}