This package is abandoned and no longer maintained. The author suggests using the nazar-pc/phpt-tests-runner package instead.

CleverStyle Tester is simple tool to test your PHP applications

0.1.8 2014-01-29 21:21 UTC


What is this?

CleverStyle Tester is simple tool to test your PHP applications

At first it was small script for testing of CleverStyle CMS, but I found it can be helpful for others helpful, and decided to maintain it as separate autonomous package. Hope, you'll like it)

Author – Nazar Mokrynskyi

Copyright (c) 2013, Nazar Mokrynskyi


  • Testing of PHP applications through browser
  • Testing of PHP applications through terminal
  • Interactive displaying of testing progress


  • Unix-like operating system
  • PHP 5.4+

How to install?


Simply add dependency on nazar-pc/cstester to your project's composer.json:

    "require": {
        "nazar-pc/cstester": "*"


Run git clone inside project directory.


Download zip/tarball from GitHub repository and extract to project directory (actually, only src/nazarpc/CSTester.php file is needed, so, you can extract only this one file (for CLI mode, for HTML copy includes directory).

How to use?

Put into root directory of the project test.php with such content (assumed composer is used, otherwise include src/nazarpc/CSTester.php file in any possible way):

 * Include CSTester class
require __DIR__.'/vendor/autoload.php';
use nazarpc\CSTester;
 * Create class instance and run testing
(new CSTester(__DIR__.'/tests'))->run();

tests directory should contain tests of the project.

Open http://website/test.php through browser, or run php test.php from terminal.

Full example of usage in example directory, it is really very simple.

Travis CI

Sample of .travis.yml for Travic CI:

language: php
  - 5.5
  - 5.4
script: php test.php


Feel free to report issues and send pull requests, all this is highly appreciated.