Skip to content

Commit

Permalink
DDC-3699 - #1387 - catching specific exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
Ocramius committed Jul 15, 2015
1 parent 86abbb0 commit 173729e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/Doctrine/Tests/ORM/Functional/Ticket/DDC3699Test.php
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -21,7 +22,7 @@ protected function setUp()
$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
}
}
Expand Down

0 comments on commit 173729e

Please sign in to comment.