mdarse / phpunit-notifier
PHPUnit的桌面通知
v1.0.2
2015-04-09 14:48 UTC
Requires
- jolicode/jolinotif: ~1.0
- phpunit/phpunit: ~4.0
This package is not auto-updated.
Last update: 2024-09-14 17:19:10 UTC
README
使用composer 在您的项目中安装
$ composer require --dev "mdarse/phpunit-notifier"
要设置,只需在您的 phpunit.xml
文件的监听器部分注册 PHPUnitNotifier\NotifierListener
。
PHPUnit XML配置示例
<?xml version="1.0" encoding="UTF-8"?> <phpunit> <testsuites> <testsuite name="Test Suite"> <directory>tests</directory> </testsuite> </testsuites> <listeners> <listener class="PHPUnitNotifier\NotifierListener"></listener> </listeners> </phpunit>
没有全局设置通知器的支持方法,但这里有一个不完美的解决方案。