Skip to content
This repository has been archived by the owner on Jan 24, 2021. It is now read-only.

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

License

Notifications You must be signed in to change notification settings

LightAir/phpunit-testlistener-xhprof

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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>

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%