2017 © Pedro Peláez
 

library phpunit-timings-printer

PHPUnit printer with timings reporting

image

andreadelfino/phpunit-timings-printer

PHPUnit printer with timings reporting

  • Monday, June 30, 2014
  • by andreadelfino
  • Repository
  • 1 Watchers
  • 1 Stars
  • 12 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

PHPUnit ResultPrinter with Tests Timings

This printer just collect tests execution timings and report the slowest 10 exceeding a defined threshold in normal mode and all the timings in verbose mode., (*1)

Requirements

  • PHP 5.3.3 or later
  • PHPUnit 3.7 or later

Installation

To install it via composer composer just add in composer.json:, (*2)

{
    "require-dev": {
        "andreadelfino/phpunit-timings-printer": "~0.1"
    }
}

Once installed, add the following attributes to the <phpunit> element in your phpunit.xml file:, (*3)

    printerFile="vendor/andreadelfino/phpunit-timings-printer/lib/Timings/ResultPrinter.php"
    printerClass="Dolphin\PHPUnit\Timings\ResultPrinter"

and the following tag to tune Threshold and Verbose options:, (*4)

    <listeners>
        <listener file="vendor/andreadelfino/phpunit-timings-printer/lib/Timings/TestListener.php"
            class="Dolphin\PHPUnit\Timings\TestListener">
            <arguments>
                <double>1.0</double>/* Threshold (default: 1.0) */
                <boolean>false</boolean>/* Verbose (default: false) */
            </arguments>
        </listener>
    </listeners>

Tests

To run the test suite you need composer., (*5)

$ php composer.phar install
$ vendor/bin/phpunit

License

Licensed under the MIT license., (*6)

The Versions

30/06 2014

dev-master

9999999-dev http://github.com/andreadelfino/phpunit-timings-printer

PHPUnit printer with timings reporting

  Sources   Download

MIT

The Requires

 

The Development Requires

phpunit tests printer timings

30/06 2014

v0.1

0.1.0.0 http://github.com/andreadelfino/phpunit-timings-printer

PHPUnit printer with timings reporting

  Sources   Download

MIT

The Requires

 

The Development Requires

phpunit tests printer timings