Commit 6760f3d1 authored by malukenho's avatar malukenho

Fix test purpose

parent 23a72e63
......@@ -402,23 +402,14 @@ SQLSTATE[HY000]: General error: 1 near \"MUUHAAAAHAAAA\"");
$this->assertSame($result, $conn->fetchColumn($statement, $params, $column, $types));
}
/**
* @expectedException Doctrine\DBAL\Exception\DriverException
*/
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();
$connNewValue = $connProperty->getValue($this->_conn);
$this->assertNull($connNewValue, 'Connection can\'t be closed.');
$this->_conn->quoteIdentifier('Bug');
}
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