in4s/utest

PHP Unit Testing Class

1.9.0 2020-10-30 19:19 UTC

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

  1. Install this library using composer.

  2. Make your own tests files, by example taken from tests/UTestTest.php

  3. 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: