Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions tests/Doctrine/Tests/DBAL/Functional/ExceptionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ public function testSyntaxErrorException() : void

public function testConnectionExceptionSqLite() : void
{
if ($this->connection->getDatabasePlatform() instanceof SqlitePlatform) {
if (! ($this->connection->getDatabasePlatform() instanceof SqlitePlatform)) {
$this->markTestSkipped('Only fails this way on sqlite');
}

Expand Down Expand Up @@ -327,7 +327,8 @@ public function testConnectionExceptionSqLite() : void
$table->addColumn('id', 'integer');

$this->expectException(Exception\ReadOnlyException::class);
$this->expectExceptionMessage(<<<EOT
$this->expectExceptionMessage(
<<<EOT
An exception occurred while executing 'CREATE TABLE no_connection (id INTEGER NOT NULL)':

SQLSTATE[HY000]: General error: 8 attempt to write a readonly database
Expand Down