function DatabaseEmptyStatementTestCase::testEmptyFetchAll

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

Archivo

drupal-7.x/modules/simpletest/tests/database_test.test, line 3865

Class

DatabaseEmptyStatementTestCase
Tests the empty pseudo-statement class.

Código

function testEmptyFetchAll() {
  $result = new DatabaseStatementEmpty();

  $this->assertEqual($result->fetchAll(), array(), 'Empty array returned from empty result set.');
}