Browse Source

skip test on 8.2

Mark Story 3 years ago
parent
commit
5e378c72ce
1 changed files with 4 additions and 0 deletions
  1. 4 0
      tests/TestCase/Database/Log/LoggingStatementTest.php

+ 4 - 0
tests/TestCase/Database/Log/LoggingStatementTest.php

@@ -140,6 +140,10 @@ class LoggingStatementTest extends TestCase
      */
     public function testExecuteWithError(): void
     {
+        $this->skipIf(
+            version_compare(PHP_VERSION, '8.2.0', '>='),
+            'Setting queryString on exceptions does not work on 8.2+'
+        );
         $exception = new MyPDOException('This is bad');
         $inner = $this->getMockBuilder(StatementInterface::class)->getMock();
         $inner->expects($this->once())