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