iakio / phpunit-growlprinter
PHPUnit Growl(GNTP) Printer
Installs: 78
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/iakio/phpunit-growlprinter
Requires
- php: >=5.3.3
- iakio/gntp-notify: ~0.3
Requires (Dev)
- phpunit/phpunit: >=4.6,<5.2
This package is not auto-updated.
Last update: 2025-09-24 17:54:58 UTC
README
Requirements
- PHP >= 5.3
- phpunit >= 4.8.*,<5.5
Usage
PHAR
-
Download phpunit-growlprinter.phar from here.
-
Create new bootstrap file.
<?php // bootstrap_growl.php require_once "phpunit-growlprinter.phar"; // Put your own bootstrap file here // require_once "bootstrap.php";
- Run
$ phpunit --bootstrap=bootstrap_growl.php --printer=iakio\\phpunit\\GrowlPrinter
Composer
- Install
$ php composer.phar require --dev iakio/phpunit-growlprinter:*
- Specify printerClass in your phpunit.xml,
<phpunit printerClass="iakio\phpunit\GrowlPrinter" printerFile="vendor/iakio/phpunit-growlprinter/src/iakio/phpunit/GrowlPrinter.php"> ... </phpunit>
or commandline.
$ phpunit --printer=iakio\\phpunit\\GrowlPrinter
Tips
If you want to use remote PHPUnit with local Growl, Use portforwarding:
$ ssh -R:23053:localhost:23053 myremotehost
or, override GrowlPrinter
class.
<?php // src/MyGrowlPrinter.php namespace app; use iakio\GntpNotify\GNTP; use iakio\GntpNotify\IO; use iakio\phpunit\GrowlPrinter; class MyGrowlPrinter extends GrowlPrinter { protected function createGrowl() { return new GNTP(new IO("10.0.2.2", 23053)); } }
<phpunit printerClass="app\MyGrowlPrinter" printerFile="src/MyGrowlPrinter.php"> ... </phpunit>