function DatabaseEmptyStatementTestCase::testEmptyFetchAll

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

File

drupal/modules/simpletest/tests/database_test.test, line 4018

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.');
}