Commit 5f341b3a authored by Steve Müller's avatar Steve Müller

rename method getAutoCommit to isAutoCommit

parent 4886815f
...@@ -382,9 +382,9 @@ class Connection implements DriverConnection ...@@ -382,9 +382,9 @@ class Connection implements DriverConnection
* *
* @see setAutoCommit * @see setAutoCommit
*/ */
public function getAutoCommit() public function isAutoCommit()
{ {
return $this->autoCommit; return true === $this->autoCommit;
} }
/** /**
...@@ -399,7 +399,7 @@ class Connection implements DriverConnection ...@@ -399,7 +399,7 @@ class Connection implements DriverConnection
* *
* @param boolean $autoCommit True to enable auto-commit mode; false to disable it. * @param boolean $autoCommit True to enable auto-commit mode; false to disable it.
* *
* @see getAutoCommit * @see isAutoCommit
*/ */
public function setAutoCommit($autoCommit) public function setAutoCommit($autoCommit)
{ {
......
...@@ -223,9 +223,9 @@ SQLSTATE[HY000]: General error: 1 near \"MUUHAAAAHAAAA\""); ...@@ -223,9 +223,9 @@ SQLSTATE[HY000]: General error: 1 near \"MUUHAAAAHAAAA\"");
/** /**
* @group DBAL-81 * @group DBAL-81
*/ */
public function testGetAutoCommit() public function testIsAutoCommit()
{ {
$this->assertTrue($this->_conn->getAutoCommit()); $this->assertTrue($this->_conn->isAutoCommit());
} }
/** /**
...@@ -234,9 +234,9 @@ SQLSTATE[HY000]: General error: 1 near \"MUUHAAAAHAAAA\""); ...@@ -234,9 +234,9 @@ SQLSTATE[HY000]: General error: 1 near \"MUUHAAAAHAAAA\"");
public function testSetAutoCommit() public function testSetAutoCommit()
{ {
$this->_conn->setAutoCommit(false); $this->_conn->setAutoCommit(false);
$this->assertFalse($this->_conn->getAutoCommit()); $this->assertFalse($this->_conn->isAutoCommit());
$this->_conn->setAutoCommit(0); $this->_conn->setAutoCommit(0);
$this->assertFalse($this->_conn->getAutoCommit()); $this->assertFalse($this->_conn->isAutoCommit());
} }
/** /**
......
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