Download the PHP package jwest/slim-testing without Composer
On this page you can find all versions of the php package jwest/slim-testing. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download jwest/slim-testing
More information about jwest/slim-testing
Files in jwest/slim-testing
Download jwest/slim-testing
More information about jwest/slim-testing
Files in jwest/slim-testing
Vendor jwest
Package slim-testing
Short Description Simple util for integration tests in slim framework
License
Package slim-testing
Short Description Simple util for integration tests in slim framework
License
Please rate this library. Is it a good library?
Informations about the package slim-testing
Integration tests for Slim Framework
If you doing integration tests for your app writen in slim framework, you must use this package ;)
How it works?
- Name for your test with sufix *ItTest.php (for readibility),
- Test class extends with Slim\Test\Testing,
- Field $app in class showing where your app started (public/index.php),
-
Use five magic methods for create and send request to your app:
- get($route) - send request via GET
- delete($route) - send request via DELETE
- post($route, $params) - send request via POST with parameters encoded with http params format
- postJson($route, $params) - send request via POST with json as request body
- put($route, $params) - send request via PUT with parameters encoded with http params format
- putJson($route, $params) - send request via PUT with json as request body
- Use query string in routes.
Example in: tests/Slim/Test/TestingItTest.php
All versions of slim-testing with dependencies
PHP Build Version
Package Version
The package jwest/slim-testing contains the following files
Loading the files please wait ....