Skip to content

Commit

Permalink
test(integration): improve failed test message
Browse files Browse the repository at this point in the history
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
  • Loading branch information
blizzz committed Apr 19, 2024
1 parent ae0a0d4 commit 4013b39
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/integration/features/bootstrap/FeatureContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,8 @@ public function userTables(string $user, TableNode $body = null): void {
$titles[] = $d['title'];
}
foreach ($body->getRows()[0] as $tableTitle) {
Assert::assertTrue(in_array($tableTitle, $titles, true));
$message = sprintf('"%s" not in the list: %s', $tableTitle, implode(', ', $titles));
Assert::assertTrue(in_array($tableTitle, $titles, true), $message);
}
}

Expand Down

0 comments on commit 4013b39

Please sign in to comment.