You are here

class FakeRecord in Drupal 7

Dummy class for fetching into a class.

PDO supports using a new instance of an arbitrary class for records rather than just a stdClass or array. This class is for testing that functionality. (See testQueryFetchClass() below)

Hierarchy

Expanded class hierarchy of FakeRecord

1 string reference to 'FakeRecord'
DatabaseFetchTestCase::testQueryFetchClass in modules/simpletest/tests/database_test.test
Confirm that we can fetch a record into a new instance of a custom class.

File

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

View source
class FakeRecord {

}

Members