Skip to content

Commit b30da80

Browse files
committed
Test: use Assert::contains
1 parent 1123d45 commit b30da80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/Integration/PgFunctionsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public function testErrors(): void
106106
Tester\Assert::null(\pg_result_error_field($result2, \PGSQL_DIAG_INTERNAL_QUERY));
107107
Tester\Assert::null(\pg_result_error_field($result2, \PGSQL_DIAG_CONTEXT));
108108
Tester\Assert::same('scan.l', \pg_result_error_field($result2, \PGSQL_DIAG_SOURCE_FILE));
109-
Tester\Assert::true(\in_array(\pg_result_error_field($result2, \PGSQL_DIAG_SOURCE_LINE), ['1149', '1176', '1180', '1188'], TRUE)); // PG12 => 1149, PG13 => 1176|1180, PG14/15 => 1188
109+
Tester\Assert::contains(\pg_result_error_field($result2, \PGSQL_DIAG_SOURCE_LINE), ['1149', '1176', '1180', '1188']); // PG12 => 1149, PG13 => 1176|1180, PG14/15 => 1188
110110
Tester\Assert::same('scanner_yyerror', \pg_result_error_field($result2, \PGSQL_DIAG_SOURCE_FUNCTION));
111111

112112
// ---

0 commit comments

Comments
 (0)