Registry / testing / spatie-phpunit-watcher

spatie-phpunit-watcher

JSON →
library1.24.4phppackagistunverified

Automatically rerun PHPUnit tests when source code changes

composer require spatie/phpunit-watcher
INSTALL
IMPORT
SIG · SPATIE-PHPUNIT-WAT
S
spatie-phpunit-watcher
testingphpv1.24.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Watcher
use Spatie\PhpUnitWatcher\Watcher;

Start watching for file changes and rerun PHPUnit

use Spatie\PhpUnitWatcher\Watcher; $watcher = new Watcher([ 'watch' => ['src', 'tests'], 'phpunit' => 'vendor/bin/phpunit', ]); $watcher->start();
Debug
Known issues
breakingRequires PHP 8.0+ and pcntl extension for file watching
fix
Install pcntl extension or use alternative watcher like `watchman`
affects: >=1.0.0
Upgrade
Version history
1.24.4latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
11 hits · last 30 days
node
10
OpenAI (training)
1
Resources
spatie-phpunit-watcher — pip install spatie-phpunit-watcher · libregistry