Commit 28559866 authored by malukenho's avatar malukenho

Use method `setExpectedException` instead annotation

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