function DatabaseEmptyStatementTestCase::testEmptyFetchAll

Test that the empty result set mass-fetches in an expected way.

File

modules/simpletest/tests/database_test.test, line 4269

Class

DatabaseEmptyStatementTestCase
Tests the empty pseudo-statement class.

Code

function testEmptyFetchAll() {
    $result = new DatabaseStatementEmpty();
    $this->assertEqual($result->fetchAll(), array(), 'Empty array returned from empty result set.');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.