Commit 12262341 authored by Marco Pivetta's avatar Marco Pivetta

#2494 s/setExpectedException/expectException

parent b0e5314f
......@@ -3,6 +3,7 @@
namespace Doctrine\Tests\DBAL\Functional\Driver\SQLSrv;
use Doctrine\DBAL\Driver\SQLSrv\Driver;
use Doctrine\DBAL\Driver\SQLSrv\SQLSrvException;
use Doctrine\Tests\DbalFunctionalTestCase;
class StatementTest extends DbalFunctionalTestCase
......@@ -27,7 +28,7 @@ class StatementTest extends DbalFunctionalTestCase
// it's impossible to prepare the statement without bound variables for SQL Server,
// so the preparation happens before the first execution when variables are already in place
$this->setExpectedException('Doctrine\\DBAL\\Driver\\SQLSrv\\SQLSrvException');
$this->expectException('Doctrine\\DBAL\\Driver\\SQLSrv\\SQLSrvException');
$stmt->execute();
}
}
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