php - Running PHPUnit on composer projects -
i working on lib composer/packagist.
while working on php classes,i parallely writing tests method, check if works well.
file tree:
├── composer.json ├── composer.lock ├── readme.md ├── src │ └── resizer.php ├── tests │ └── resizertests.php └── vendor └── phpunit etc...
composer.json:
{ "name": "eschmid1972/image-resizer", "description": "library resizing images custom options", "keywords": [ "php", "image", "imagemagick", "resize" ], "license": "bsd-3" ], "require": {}, "require-dev": { "phpunit/phpunit": "~4.0" } }
what need do, can run tests command phpunit
in project root?
i've found solution: need create phpunit.xml
file in project root or directory want execute phpunit
.
the documentation configuration hosted at:
https://phpunit.de/manual/current/en/appendixes.configuration.html
Comments
Post a Comment