Skip to content

in4s/utest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UTest

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:

About

PHP Unit Testing Class (RSR v0.90.1)

Resources

License

Stars

Watchers

Forks

Packages

No packages published