PHP code example of vaclav-sir / n-browser-kit
1. Go to this page and download the library: Download vaclav-sir/n-browser-kit 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/ */
vaclav-sir / n-browser-kit example snippets
$client = new Client;
$client->setContainer($container);
$client->request('GET', '/');
Assert::same(200, $client->getResponse()->getStatusCode());
Assert::contains('Hello World', $client->getResponse()->getContent());