Skip to content

Commit a2b674b

Browse files
committed
Update SyntaxErrorInPreparedStatementMethodRuleTest.php
1 parent 61f469f commit a2b674b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/rules/SyntaxErrorInPreparedStatementMethodRuleTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,10 @@ public function testSyntaxErrorWithInferencePlaceholder()
335335

336336
public function testBug749(): void
337337
{
338+
if (MysqliQueryReflector::NAME !== getenv('DBA_REFLECTOR')) {
339+
self::markTestSkipped('This test is only for MySQLi');
340+
}
341+
338342
$this->analyse([__DIR__ . '/data/bug-749.php'], [
339343
[
340344
"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 'table WHERE err-or id IN ('1') LIMIT 0' at line 1 (1064).",

0 commit comments

Comments
 (0)