PHPUnit plugin for PhpGuard
Using composer:
$ cd /paths/to/project
$ composer require --dev "phpguard/plugin-phpunit @dev"
Complete configuration options for PHPUnit
plugin:
cli
The options to passed to the phpunit command. Default:null
all_on_start
Run all tests on startup. Default:false
all_after_pass
Run all tests after changed tests pass. Default:false
keep_failed
Remember failed tests and keep running them until pass. Default:false
always_lint
Always check file syntax withphp -l
before run. If check syntax failed,phpunit
command will not running. Default:true
run_all_cli
The options to passed to the phpunit command. Default value will be usingcli
options
# /path/to/project/phpguard.yml
phpunit:
options:
cli: "--testdox --colors"
all_on_start: false
all_after_pass: false
keep_failed: true
always_lint: true
run_all_cli: "--colors"
watch:
- { pattern: "#^src\/(.+)\.php$#", transform: "functional/${1}Test.php" }
- { pattern: "#^functional\/.*Test.php$#" }