Skip to content

Commit 09ed581

Browse files
author
Vignesh C
committed
added doc comment
1 parent 0a3b7dc commit 09ed581

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/TestCaseGenerator.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,21 @@ class TestCaseGenerator
1414

1515
protected $rules;
1616

17+
/**
18+
* Initiates the global parameters
19+
*/
1720
public function __construct()
1821
{
1922
$this->faker = Faker\Factory::create();
2023
$this->cases = [];
2124
}
2225

26+
/**
27+
* Initialize the params and rules and generates the test cases
28+
*
29+
* @param array $rules
30+
* @return array
31+
*/
2332
public function generate($rules)
2433
{
2534
$this->params = array_keys($rules);

0 commit comments

Comments
 (0)