PHP code example of fesor / behat-stepler
1. Go to this page and download the library: Download fesor/behat-stepler 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/ */
fesor / behat-stepler example snippets
/**
* @Given :name have account
*/
public function createUser($name)
{
$user = $this->fakeUserFactory($name);
$this->userRepository->add($user);
return $user->getDTO();
}