MediaWiki REL1_34
TextExtracts\Test\TextTruncatorTest Class Reference

@covers \TextExtracts\TextTruncator @group TextExtracts More...

Inheritance diagram for TextExtracts\Test\TextTruncatorTest:
Collaboration diagram for TextExtracts\Test\TextTruncatorTest:

Public Member Functions

 provideGetFirstChars ()
 
 provideGetFirstSentences ()
 
 testGetFirstChars ( $text, $chars, $expected)
 @dataProvider provideGetFirstChars
 
 testGetFirstSentences ( $text, $sentences, $expected)
 @dataProvider provideGetFirstSentences
 
 testTidyIntegration ()
 

Detailed Description

@covers \TextExtracts\TextTruncator @group TextExtracts

Note
GPL-2.0-or-later

Definition at line 14 of file TextTruncatorTest.php.

Member Function Documentation

◆ provideGetFirstChars()

TextExtracts\Test\TextTruncatorTest::provideGetFirstChars ( )

Definition at line 145 of file TextTruncatorTest.php.

◆ provideGetFirstSentences()

TextExtracts\Test\TextTruncatorTest::provideGetFirstSentences ( )

Definition at line 28 of file TextTruncatorTest.php.

◆ testGetFirstChars()

TextExtracts\Test\TextTruncatorTest::testGetFirstChars ( $text,
$chars,
$expected )

@dataProvider provideGetFirstChars

Parameters
string$text
string$chars
string$expected

Definition at line 140 of file TextTruncatorTest.php.

References $chars.

◆ testGetFirstSentences()

TextExtracts\Test\TextTruncatorTest::testGetFirstSentences ( $text,
$sentences,
$expected )

@dataProvider provideGetFirstSentences

Parameters
string$text
string$sentences
string$expected

Definition at line 23 of file TextTruncatorTest.php.

◆ testTidyIntegration()

TextExtracts\Test\TextTruncatorTest::testTidyIntegration ( )

Definition at line 173 of file TextTruncatorTest.php.


The documentation for this class was generated from the following file: