Download the PHP package digitalzenworks/api-test without Composer
On this page you can find all versions of the php package digitalzenworks/api-test. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download digitalzenworks/api-test
More information about digitalzenworks/api-test
Files in digitalzenworks/api-test
Package api-test
Short Description A library for end to end testing web APIs with PHPUnit.
License MIT
Homepage https://github.com/jamesjohnmcguire/ApiTest/
Informations about the package api-test
ApiTest
A library for testing web APIs with PHPUnit.
Please :star: star this project!
Getting Started
Requirements/dependencies
This requirement could potentially be relaxed to older version of PHP upon request.
Installation
Git
git clone https://github.com/jamesjohnmcguire/ApiTest
Composer
composer require --dev https://packagist.org/packages/digitalzenworks/api-test
Usage:
There is one main class with one main method. You can call it like this:
The main method parameters are:
Type: | Parameter: |
---|---|
string | The HTTP method to use. |
string | The API end point. |
?string | The request data. |
Additional Notes
This uses Guzzle to process the API request.
Contributing
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement".
Process:
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Coding style
Please match the current coding style. Most notably:
- One operation per line
- Use complete English words in variable and method names
- Attempt to declare variable and method names in a self-documenting manner
License
Distributed under the MIT License. See LICENSE
for more information.
Contact
James John McGuire - @jamesmc - [email protected]
Project Link: https://github.com/jamesjohnmcguire/ApiTest