in4s / utest
PHP Unit Testing Class
1.9.0
2020-10-30 19:19 UTC
Requires
- php: >=7.0.0
- in4s/bem: 3.*.*
This package is auto-updated.
Last update: 2025-06-07 11:19:38 UTC
README
PHP Unit Testing Class
v1.9.0
Using this class you can render unit tests results directly on a web page.
Getting started
-
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.
Complies with standards:
- RSR v0.90.1
- Semantic Versioning 2.0.0 (https://semver.org/)