diff --git a/tests/Doctrine/DBAL/Migrations/Tests/ConfigurationTest.php b/tests/Doctrine/DBAL/Migrations/Tests/ConfigurationTest.php
index <HASH>..<HASH> 100644
--- a/tests/Doctrine/DBAL/Migrations/Tests/ConfigurationTest.php
+++ b/tests/Doctrine/DBAL/Migrations/Tests/ConfigurationTest.php
@@ -209,9 +209,9 @@ class ConfigurationTest extends MigrationTestCase
 
     public function testGetVersionNotFound()
     {
-        $this->setExpectedException(MigrationException::class);
-
         $config = $this->getSqliteConfiguration();
+        
+        $this->setExpectedException(MigrationException::class);
 
         $config->getVersion('foo');
     }
Move expected exception after getSqliteConfiguration call in test