antimattr / test-case
此包已被弃用且不再维护。未建议替代包。
PHPUnit 测试用例辅助
v1.0.1
2015-04-20 15:08 UTC
Requires
- php: >=5.3.2
Requires (Dev)
- fabpot/php-cs-fixer: 0.5.*@dev
- phpunit/phpunit: ~4.0
This package is not auto-updated.
Last update: 2018-07-08 17:46:59 UTC
README
AntiMattr 测试用例是一个提供PHPUnit辅助的库。
安装
使用composer安装
composer install
请使用pre-commit钩子运行修正代码至PSR标准
一次性安装
./bin/install.sh
Copying /test-case/bin/pre-commit.sh -> /test-case/bin/../.git/hooks/pre-commit
测试
$ vendor/bin/phpunit
代码检查器和修正器
$ vendor/bin/php-cs-fixer fix src/ $ vendor/bin/php-cs-fixer fix tests/