PHP code example of ippey / quickbrownfox-codeception-helper
1. Go to this page and download the library: Download ippey/quickbrownfox-codeception-helper 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/ */
ippey / quickbrownfox-codeception-helper example snippets
// Using Helper
$this->>tester->setFixtures('table', [
[
'id' => 1,
'name' => 'my name',
'gender' => 'male',
],
]);
// Using FixtureSetupSession
$this->tester->newFixtureSession();
$session = $this->tester->getFixtureSession();
$session->into('table')->load([
[
'id' => 1,
'name' => 'my name',
'gender' => 'male',
],
]);
// If you want to reset data, use resetFixtureSession()
$this->>tester->resetFixtureSession();