Fix pdoexception message in php8.0 in windows

pull/702/head
fadrian06 2 days ago
parent a8de8d3914
commit 4e8402ece0

@ -171,9 +171,9 @@ class SimplePdoTest extends TestCase
$this->assertInstanceOf(Collection::class, $row); $this->assertInstanceOf(Collection::class, $row);
$this->assertSame('Alice', $row['name']); $this->assertSame('Alice', $row['name']);
} catch (PDOException $exception) { } catch (PDOException $exception) {
$this->assertSame( $this->assertStringContainsString(
'Prepare failed: near "RETURNING": syntax error', 'near "returning": syntax error',
$exception->getMessage(), strtolower($exception->getMessage()),
); );
} }
} }

Loading…
Cancel
Save