Desktop notifications for PHPUnit
Switch branches/tags
Nothing to show
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src Pretty icon on OSX Apr 3, 2015
.gitignore Initial commit Apr 2, 2015
LICENSE Add license informations Apr 3, 2015
README.md Add info to define notifier globally Apr 10, 2015
composer.json Listener should work from PHPUnit 4.0 Apr 9, 2015

README.md

PHPUnit Notifier

Demo

Use composer to install on your project:

$ composer require --dev "mdarse/phpunit-notifier"

To set up, just register PHPUnitNotifier\NotifierListener in the listeners section of you phpunit.xml.

Example of PHPUnit XML configuration:

<?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>

There is no supported mean to globally setup the notifier for every project, but here is a dirty workaround.