PHP Unit Testing Class
v1.9.0
Using this class you can render unit tests results directly on a web page.
-
Install this library using composer.
-
Make your own tests files, by example taken from tests/UTestTest.php
-
Use this code to run tests and display results on page.
$UTest = new \in4s\UTest();
// You can
$UTest->renderStylesAndScripts();
// or use yours styles and scripts, just grab originals from src/styles.php and src/scripts.php
// Render test results of a particular class, just replace in4s\UTestTest to your test class name
in4s\UTestTest::run();
!!! Important note: You need JQuery attached to the webpage to use this version of the class.
The class code is documented by DocBlocks, so you can use it as documentation.
- RSR v0.90.1
- Semantic Versioning 2.0.0 (https://semver.org/)