Skip to content

Commit bb9422d

Browse files
committed
expect errors
1 parent b2ce060 commit bb9422d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/rules/SyntaxErrorInQueryMethodRuleTest.php

Lines changed: 8 additions & 0 deletions
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)