PHP code example of interactive-solutions / zf-behat
1. Go to this page and download the library: Download interactive-solutions/zf-behat 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/ */
interactive-solutions / zf-behat example snippets
UserOptions::class => [
//The user entity class to use
'userEntityClass' => UserEntity::class,
'defaultUserProperties' => [
'firstName' => 'First',
'lastName' => 'Last',
// password field is automatically bcrypted when entity is generated
'password' => '12345',
'createdAt' => new DateTime(),
],
],
EntityOptions::class => [
// fill in the entity keys and their corresponding route/default values
'entities' => [
'match' => [
// aliases are used to provide a better flow in your scenarios
'aliases' => [
'matches',
],
'entity' => MatchEntity::class,
'route' => 'matches'
'defaultProperties' => [
'type' => 'SinglePlayer',
'winner' => 1,
'winnerScore' => 1337,
'finishedAt' => new DateTime(),
]
]
]
]
Given an existing "TYPE" created with static method "create" with alias "TYPE1"
When I add a new "TYPE" with:
"""
{
"clinicId": "%Alias:FieldName%"
}
"""
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.