Skip to content

Commit

Permalink
Address exception renaming in DBAL 3
Browse files Browse the repository at this point in the history
  • Loading branch information
greg0ire committed Sep 26, 2020
1 parent 79c8f66 commit 7958030
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Tests/Command/DropDatabaseDoctrineTest.php
Expand Up @@ -52,7 +52,11 @@ public function testExecute(array $options) : void
*/
public function testItThrowsWhenUsingIfExistsWithAnIncompatibleDriver(array $options) : void
{
static::expectException(DBALException::class);
if (class_exists(DBALException::class)) {
$this->expectException(DBALException::class);
} else {
$this->expectException(Doctrine\DBAL\Exception::class);
}
$this->testExecute($options);
}

Expand Down

0 comments on commit 7958030

Please sign in to comment.