function TextSummaryTestCase::testNullSentence

Test for the NULL value.

File

modules/field/modules/text/text.test, line 388

Class

TextSummaryTestCase

Code

function testNullSentence() {
    $summary = text_summary(NULL);
    $this->assertNull($summary, 'text_summary() casts returned null');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.