Commit d665f62b authored by malukenho's avatar malukenho Committed by Steve Müller

Use method `setExpectedException` instead annotation

parent b89ffed8
......@@ -403,11 +403,9 @@ SQLSTATE[HY000]: General error: 1 near \"MUUHAAAAHAAAA\"");
$this->assertSame($result, $conn->fetchColumn($statement, $params, $column, $types));
}
/**
* @expectedException Doctrine\DBAL\Exception\DriverException
*/
public function testConnectionIsClosed()
{
$this->setExpectedException('Doctrine\\DBAL\\Exception\\DriverException');
$this->_conn->close();
$this->_conn->quoteIdentifier('Bug');
}
......
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