1
0
mirror of synced 2025-02-02 21:41:45 +03:00

DDC-3699 - #1387 - catching specific exceptions

This commit is contained in:
Marco Pivetta 2015-07-15 21:47:37 +01:00
parent 74883e535f
commit 12183b7e6c

View File

@ -1,5 +1,6 @@
<?php
use Doctrine\DBAL\Schema\SchemaException;
use Doctrine\Tests\Models\DDC3699\DDC3699Parent;
use Doctrine\Tests\Models\DDC3699\DDC3699RelationOne;
use Doctrine\Tests\Models\DDC3699\DDC3699RelationMany;
@ -21,7 +22,7 @@ class DDC3597Test extends \Doctrine\Tests\OrmFunctionalTestCase
$this->_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
}
}