function DatabaseEmptyStatementTestCase::testEmptyFetchAll in Drupal 7
Test that the empty result set mass-fetches in an expected way.
File
- modules/
simpletest/ tests/ database_test.test, line 4038
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.');
}