0
I am creating a PHP package, with Composer for when it is finished being published in Packagist.
This package consists of many requests in other Apis, in case I am using the Guzzle.
To perform the tests on phpunit
to help test the JSON structure, I found this package on github, but even in tests that return a small JSON, the code is pretty "boring" to do.
I’m a little more familiar with projects Laravel, so I wonder if anyone knows any way to add to this package a development dependency only for the part of HTTP-Tests of Laravel, or at least the entire testing part, without inserting more than this.
I have already done a research in the documentation of Laravel and a little on Stackoverflow, but so far I found nothing. If anyone knows, I’d appreciate it.
Use the option require-dev in the
composer.json
– Valdeir Psr
Okay, but can you please tell me what I add in there to add just the part of Laravel’s tests?
– guastallaigor
"require-dev": {"user/package": "version"}
. This way, the package will be installed only in the development version.– Valdeir Psr