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 86abbb0e78
commit 173729e560

View File

@ -1,5 +1,6 @@
<?php <?php
use Doctrine\DBAL\Schema\SchemaException;
use Doctrine\Tests\Models\DDC3699\DDC3699Parent; use Doctrine\Tests\Models\DDC3699\DDC3699Parent;
use Doctrine\Tests\Models\DDC3699\DDC3699RelationOne; use Doctrine\Tests\Models\DDC3699\DDC3699RelationOne;
use Doctrine\Tests\Models\DDC3699\DDC3699RelationMany; use Doctrine\Tests\Models\DDC3699\DDC3699RelationMany;
@ -21,7 +22,7 @@ class DDC3597Test extends \Doctrine\Tests\OrmFunctionalTestCase
$this->_em->getClassMetadata(DDC3699RelationMany::CLASSNAME), $this->_em->getClassMetadata(DDC3699RelationMany::CLASSNAME),
$this->_em->getClassMetadata(DDC3699Child::CLASSNAME), $this->_em->getClassMetadata(DDC3699Child::CLASSNAME),
)); ));
} catch (\Exception $e) { } catch (SchemaException $e) {
// should throw error on second because schema is already created // should throw error on second because schema is already created
} }
} }