From 173729e5608c065f347c2b078c17d8dfee34cf7d Mon Sep 17 00:00:00 2001 From: Marco Pivetta Date: Wed, 15 Jul 2015 21:47:37 +0100 Subject: [PATCH] DDC-3699 - #1387 - catching specific exceptions --- tests/Doctrine/Tests/ORM/Functional/Ticket/DDC3699Test.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/Doctrine/Tests/ORM/Functional/Ticket/DDC3699Test.php b/tests/Doctrine/Tests/ORM/Functional/Ticket/DDC3699Test.php index c3366ec81..58f67dd3c 100644 --- a/tests/Doctrine/Tests/ORM/Functional/Ticket/DDC3699Test.php +++ b/tests/Doctrine/Tests/ORM/Functional/Ticket/DDC3699Test.php @@ -1,5 +1,6 @@ _em->getClassMetadata(DDC3699RelationMany::CLASSNAME), $this->_em->getClassMetadata(DDC3699Child::CLASSNAME), )); - } catch (\Exception $e) { + } catch (SchemaException $e) { // should throw error on second because schema is already created } }