lightair/phpunit-testlistener-xhprof

This package is abandoned and no longer maintained. No replacement package was suggested.

A updated TestListener for PHPUnit that uses XHProf for automated profiling of the tested code.

1.0.3 2016-12-05 07:23 UTC

This package is auto-updated.

Last update: 2022-02-01 13:03:16 UTC


README

This is updated fork to - A TestListener that integrates with XHProf

1.0.3 - for php >= 5.6 & phpunit 5.7.*
1.0.2 - for php >= 5.6 & phpunit 5.6.*

======= Here is an example XML configuration for activating this listener:

<listeners>
    <listener class="PHPUnit\XHProfTestListener\XHProfTestListener">
        <arguments>
            <array>
                <element key="xhprofLibFile">
                    <string>/var/www/xhprof_lib/utils/xhprof_lib.php</string>
                </element>
                <element key="xhprofRunsFile">
                    <string>/var/www/xhprof_lib/utils/xhprof_runs.php</string>
                </element>
                <element key="xhprofWeb">
                    <string>http://localhost/xhprof_html/index.php</string>
                </element>
                <element key="appNamespace">
                    <string>Doctrine2</string>
                </element>
                <element key="xhprofFlags">
                    <string>XHPROF_FLAGS_CPU,XHPROF_FLAGS_MEMORY</string>
                </element>
                <element key="xhprofIgnore">
                    <string>call_user_func,call_user_func_array</string>
                </element>
            </array>
        </arguments>
    </listener>
</listeners>