You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
self::markTestSkipped("We don't test all variants of expectations for all drivers");
175
+
}
176
+
173
177
$expectedErrors = [
174
178
[
175
179
"Query error: SQLSTATE[42000]: Syntax error or access violation: 1064 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 'freigabe1u1 FROM ada LIMIT 0' at line 1 (42000).",
Copy file name to clipboardExpand all lines: tests/rules/SyntaxErrorInQueryFunctionRuleTest.php
+5-1Lines changed: 5 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,7 @@ public function testSyntaxErrorInQueryRule(): void
39
39
publicfunctiongetExpectedErrors(): array
40
40
{
41
41
$dbaReflector = getenv('DBA_REFLECTOR');
42
-
$platform = getenv('DBA_PLATFORM');
42
+
$platform = $_ENV['DBA_PLATFORM'];
43
43
44
44
switch ($dbaReflector) {
45
45
case MysqliQueryReflector::NAME:
@@ -90,6 +90,10 @@ public function getExpectedErrors(): array
90
90
],
91
91
];
92
92
case PdoMysqlQueryReflector::NAME:
93
+
if ('mariadb' === $_ENV['DBA_PLATFORM']) {
94
+
self::markTestSkipped("We don't test all variants of expectations for all drivers");
95
+
}
96
+
93
97
return [
94
98
[
95
99
"Query error: SQLSTATE[42000]: Syntax error or access violation: 1064 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 'freigabe1u1 FROM ada LIMIT 0' at line 1 (42000).",
self::markTestSkipped("We don't test all variants of expectations for all drivers");
119
+
}
120
+
117
121
$expected = [
118
122
[
119
123
"Query error: SQLSTATE[42000]: Syntax error or access violation: 1064 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 'freigabe1u1 FROM ada LIMIT 0' at line 1 (42000).",
0 commit comments