PHPUnit loggers to profile tests.

3.0.1 2017-06-15 15:40 UTC

This package is auto-updated.

Last update: 2024-05-05 03:02:11 UTC


Latest Stable Version Build Status Total Downloads License Code Climate Test Coverage Issue Count StyleCI SensioLabsInsight Dependency Status Coverage Status


A PHPUnit listener to profile the execution of test suites and tests inside them.

This listener can show the time needed by each test and each test suite to complete and the memory used by each one of them.


Use Composer to install this listener:

$ composer require serendipity_hq/phpunit_profiler

To configure the listener you have to pass an array of options:

    <listener class="SerendipityHQ\Library\PHPUnit_Profiler\Profiler">
                <element key="time"><boolean>true</boolean></element>
                <element key="profileTimeWithStopwatch"><boolean>true</boolean></element>
                <element key="profileMemoryUsage"><boolean>true</boolean></element>
                <element key="profileMemoryDetailedUsage"><boolean>true</boolean></element>

The listener will output the profiling information.

NOTE: As this is a listener and not a ResultsPrinter, it doesn't take care of the use of --verbose or --debug options.