PHP code example of ciaranmcnulty / behat-psr7extension
1. Go to this page and download the library: Download ciaranmcnulty/behat-psr7extension 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/ */
ciaranmcnulty / behat-psr7extension example snippets
$container = ainer->get('Zend\Expressive\Application');
$app = new \Slim\App;
// .. any necessary bootstrapping
return $app;
use Psr\Http\Message\RequestInterface;
use Psr\Http\Message\ResponseInterface;
// bootstrap your application
$app = new My\App();
return function (RequestInterface $request) use ($app) : ResponseInterface
{
// exercise your application however you normally would
return $app->handle($request);
};