floor9design / testing-tools
Classes to help with unit testing
Installs: 3 808
Dependents: 2
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: >=7.3
- ext-json: *
- floor9design/test-data-generator: ^1.3.4
Requires (Dev)
- mockery/mockery: dev-master
- phpunit/phpunit: ^10.0||^9.0
README
Introduction
This offers a set of easy testing tools useful for generating unit testing in PHPUnit.
Features
- Easy installation
- Simple and efficient classes
Install
Via Composer
composer require floor9design/testing-tools
Usage
Setup
These are a simple classes, so minimal setup is required. In a composer/PSR compliant system, this should be automatically included. If your system works another way, this can be manually included.
Note that they are namespaced, so should not clash with your other classes/methods.
Testing
To run the tests:
./vendor/phpunit/phpunit/phpunit
Documentation and coverage can be generated as follows:
./vendor/phpunit/phpunit/phpunit --coverage-html docs/tests/
Credits
Changelog
A changelog is generated here: