Skip to content

Commit

Permalink
Merge pull request #3705 from Federkun/fix-sqlite-test
Browse files Browse the repository at this point in the history
Don't skip a test for sqlite
  • Loading branch information
morozov authored Oct 25, 2019
2 parents 8be62b2 + 4ee89c6 commit ce401dd
Showing 1 changed file with 3 additions and 2 deletions.
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

0 comments on commit ce401dd

Please sign in to comment.