From 7958030dd7d0b37477b48362d0195179cc5c2acb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Paris?= Date: Sat, 26 Sep 2020 18:17:34 +0200 Subject: [PATCH] Address exception renaming in DBAL 3 --- Tests/Command/DropDatabaseDoctrineTest.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Tests/Command/DropDatabaseDoctrineTest.php b/Tests/Command/DropDatabaseDoctrineTest.php index eef28598a..2abc77333 100644 --- a/Tests/Command/DropDatabaseDoctrineTest.php +++ b/Tests/Command/DropDatabaseDoctrineTest.php @@ -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); }