Skip to content

Commit

Permalink
Moving closeCursor() call after count(), just in case
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Mar 29, 2014
1 parent 0278300 commit 2187fdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/TestCase/Database/ConnectionTest.php
Expand Up @@ -204,9 +204,9 @@ public function testExecuteWithNoParams() {
$sql = 'SELECT 1';
$statement = $this->connection->execute($sql);
$result = $statement->fetch();
$statement->closeCursor();
$this->assertCount(1, $result);
$this->assertEquals([1], $result);
$statement->closeCursor();
}

/**
Expand Down

0 comments on commit 2187fdd

Please sign in to comment.