PHP code example of jdolba / slim-http-smoke-testing
1. Go to this page and download the library: Download jdolba/slim-http-smoke-testing library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
jdolba / slim-http-smoke-testing example snippets
bash
php vendor/bin/phpunit tests/Smoke/MyAwesomeApplicationSmokeTest.php
$app = new \Slim\App();
$app->any('/', function ($request, $response, $args) {
//...
return $response;
});