Commit 6760f3d1 authored by malukenho's avatar malukenho

Fix test purpose

parent 23a72e63
...@@ -403,22 +403,13 @@ SQLSTATE[HY000]: General error: 1 near \"MUUHAAAAHAAAA\""); ...@@ -403,22 +403,13 @@ 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()
{ {
$reflection = new \ReflectionObject($this->_conn);
$connProperty = $reflection->getProperty('_conn');
$connProperty->setAccessible(true);
$connProperty->setValue($this->_conn, new \stdClass);
$connValue = $connProperty->getValue($this->_conn);
$this->assertInstanceOf('stdClass', $connValue);
$this->_conn->close(); $this->_conn->close();
$this->_conn->quoteIdentifier('Bug');
$connNewValue = $connProperty->getValue($this->_conn);
$this->assertNull($connNewValue, 'Connection can\'t be closed.');
} }
public function testFetchAll() public function testFetchAll()
......
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