PHP code example of edno / codeception-gherkin-param
1. Go to this page and download the library: Download edno/codeception-gherkin-param 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/ */
edno / codeception-gherkin-param example snippets
/**
* @Given I have a parameter :param with value :value
*/
public function iHaveAParameterWithValue($param, $value)
{
Fixtures::add($param, $value);
}
/**
* @Then I should see :arg1 equals :arg2
*/
public function iSeeEqual($arg1, $arg2)
{
$this->assertEquals($arg1, $arg2);
}