Commit 0f654115 authored by Benjamin Eberlei's avatar Benjamin Eberlei

Skip exception tests if not supported.

parent 78790d5c
...@@ -5,6 +5,18 @@ use Doctrine\DBAL\DBALException; ...@@ -5,6 +5,18 @@ use Doctrine\DBAL\DBALException;
class ExceptionTest extends \Doctrine\Tests\DbalFunctionalTestCase class ExceptionTest extends \Doctrine\Tests\DbalFunctionalTestCase
{ {
public function setUp()
{
parent::setUp();
$supportExceptions = array('pdo_sqlite', 'pdo_mysql', 'pdo_pgsql');
$params = $this->_conn->getParams();
if (!in_array($params['driver'], $supportExceptions)) {
$this->markTestSkipped('Driver does not support special exception handling.');
}
}
public function testDuplicateKeyException() public function testDuplicateKeyException()
{ {
$table = new \Doctrine\DBAL\Schema\Table("duplicatekey_table"); $table = new \Doctrine\DBAL\Schema\Table("duplicatekey_table");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment