Tests that a comparison with NULL is always FALSE.
function testNullCondition() {
$this
->ensureSampleDataNull();
$names = db_select('test_null', 'tn')
->fields('tn', array(
'name',
))
->condition('age', NULL)
->execute()
->fetchCol();
$this
->assertEqual(count($names), 0, 'No records found when comparing to NULL.');
}