1. Go to this page and download the library: Download genesis/behat-fail-aid 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/ */
genesis / behat-fail-aid example snippets
# FeatureContext.php
use FailAid\Context\FailureContext;
class FeatureContext
{
/**
* @Given I am logged in
*/
public function login()
{
$email = $this->createUserWithRandomEmail(); // assume this returns [email protected]
$this->fillField('email', $email);
$this->fillField('password', 'xxxxxxxx');
$this->press('login');
FailureContext::addState('test user', $email);
}
}