Skip to content

Commit e643e77

Browse files
committed
expect errors
1 parent 38b29a0 commit e643e77

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/rules/SyntaxErrorInQueryMethodRuleTest.php

+8
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,14 @@ public function testSyntaxErrorInQueryRule(): void
100100
"Query error: Table 'phpstan_dba.adasfd' doesn't exist (1146).",
101101
138,
102102
],
103+
[
104+
"Query error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL/MariaDB server version for the right syntax to use near 'WHERE adaid = 1' at line 1 (1064).",
105+
155,
106+
],
107+
[
108+
"Query error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL/MariaDB server version for the right syntax to use near 'WHERE adaid = 1' at line 1 (1064).",
109+
156,
110+
],
103111
];
104112
} elseif (PdoMysqlQueryReflector::NAME === getenv('DBA_REFLECTOR')) {
105113
$expected = [

0 commit comments

Comments
 (0)