Skip to content

Commit 511948a

Browse files
Copilotswissspidy
andcommitted
Fix typo and correct variable usage in CSV comparison
Co-authored-by: swissspidy <[email protected]>
1 parent c73108e commit 511948a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Context/ThenStepDefinitions.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ public function then_stdout_should_be_csv_containing( TableNode $expected ): voi
295295
$output = $this->result->stdout;
296296

297297
$expected_rows = $expected->getRows();
298-
foreach ( $expected as &$row ) {
298+
foreach ( $expected_rows as &$row ) {
299299
foreach ( $row as &$value ) {
300300
$value = $this->replace_variables( $value );
301301
}
@@ -317,7 +317,7 @@ public function then_stdout_should_be_csv_containing( TableNode $expected ): voi
317317
}
318318

319319
/**
320-
* Expect STDOUT to be YAML containig certain content.
320+
* Expect STDOUT to be YAML containing certain content.
321321
*
322322
* ```
323323
* Scenario: My example scenario

0 commit comments

Comments
 (0)