Skip to content

Commit

Permalink
Don't skip a test for sqlite when you are checking sqlite.
Browse files Browse the repository at this point in the history
  • Loading branch information
Federkun committed Oct 25, 2019
1 parent 8be62b2 commit 4ee89c6
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 4ee89c6

Please sign in to comment.