Skip to content

Commit a421488

Browse files
authored
Update TestCaseGenerator.php
1 parent 094bab7 commit a421488

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/TestCaseGenerator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ protected function generateSuccessCase()
5858
$case = [];
5959
$value = '';
6060
foreach ($this->params as $key => $val) {
61-
$case[$val] = $this->getValue($val, $this->rules[$key]);
61+
$case[$val] = $this->getValue(is_string($val) ? $val : strval($val), $this->rules[$key]);
6262
}
6363

6464
$this->cases['success'] = $case;
@@ -334,4 +334,4 @@ protected function generateFailureCase()
334334
$this->cases['failure'] = array_fill_keys($this->params, '');
335335
}
336336

337-
}
337+
}

0 commit comments

Comments
 (0)