Skip to content

Commit 567566a

Browse files
committed
Updated the YAML test generator with the support of .value case
1 parent c807f66 commit 567566a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

util/ActionTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,10 @@ private function convertResponseField(string $field): string
432432
if ($field === '$body' || $field === '') {
433433
return $output;
434434
}
435+
// if the field start with $ use this as variable instead of $response
436+
if ($field[0] === '$') {
437+
list($output, $field) = explode('.', $field, 2);
438+
}
435439
// if the field starts with a .$variable remove the first dot
436440
if (substr($field, 0, 2) === '.$') {
437441
$field = substr($field, 1);

0 commit comments

Comments
 (0)