lightair / phpunit-testlistener-xhprof
此包已被放弃,不再维护。没有建议的替代包。
这是一个更新后的PHPUnit TestListener,使用XHProf对测试代码进行自动化分析。
1.0.3
2016-12-05 07:23 UTC
Requires
- php: >=5.6
- phpunit/phpunit: 5.7.*
This package is auto-updated.
Last update: 2022-02-01 13:03:16 UTC
README
这是对以下包的更新分支 - 一个与XHProf集成的TestListener
1.0.3 - for php >= 5.6 & phpunit 5.7.*
1.0.2 - for php >= 5.6 & phpunit 5.6.*
======= 下面是激活此监听器的示例XML配置
<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>https:///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>