MediaWiki  1.34.0
TextExtracts\Test\ApiQueryExtractsTest Class Reference

@covers \TextExtracts\ApiQueryExtracts @group TextExtracts More...

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

Public Member Functions

 provideFirstSectionsToExtract ()
 
 provideSectionsToFormat ()
 
 testDoSections ( $text, $format, $expected)
 @dataProvider provideSectionsToFormat More...
 
 testGetFirstSection ( $text, $isPlainText, $expected)
 @dataProvider provideFirstSectionsToExtract More...
 
 testMemCacheHelpers ()
 
 testSelfDocumentation ()
 

Private Member Functions

 newInstance ()
 

Detailed Description

@covers \TextExtracts\ApiQueryExtracts @group TextExtracts

Note
GPL-2.0-or-later

Definition at line 15 of file ApiQueryExtractsTest.php.

Member Function Documentation

◆ newInstance()

◆ provideFirstSectionsToExtract()

TextExtracts\Test\ApiQueryExtractsTest::provideFirstSectionsToExtract ( )

Definition at line 92 of file ApiQueryExtractsTest.php.

◆ provideSectionsToFormat()

TextExtracts\Test\ApiQueryExtractsTest::provideSectionsToFormat ( )

Definition at line 129 of file ApiQueryExtractsTest.php.

◆ testDoSections()

TextExtracts\Test\ApiQueryExtractsTest::testDoSections (   $text,
  $format,
  $expected 
)

@dataProvider provideSectionsToFormat

Definition at line 121 of file ApiQueryExtractsTest.php.

References TextExtracts\Test\ApiQueryExtractsTest\newInstance().

◆ testGetFirstSection()

TextExtracts\Test\ApiQueryExtractsTest::testGetFirstSection (   $text,
  $isPlainText,
  $expected 
)

@dataProvider provideFirstSectionsToExtract

Definition at line 85 of file ApiQueryExtractsTest.php.

References TextExtracts\Test\ApiQueryExtractsTest\newInstance().

◆ testMemCacheHelpers()

TextExtracts\Test\ApiQueryExtractsTest::testMemCacheHelpers ( )

◆ testSelfDocumentation()

TextExtracts\Test\ApiQueryExtractsTest::testSelfDocumentation ( )

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