PHP code example of friends-of-behat / test-context
1. Go to this page and download the library: Download friends-of-behat/test-context 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/ */
friends-of-behat / test-context example snippets
// behat.php
declare(strict_types=1);
use Behat\Config\Config;
use Behat\Config\Profile;
use Behat\Config\Suite;
use FriendsOfBehat\TestContext\Context\TestContext;
return (new Config())
->withProfile(
(new Profile('default'))
->withSuite(
(new Suite('default'))
->withContexts(TestContext::class)
)
);