MediaWiki  1.30.0
TitleArrayFromResultTest Class Reference
Inheritance diagram for TitleArrayFromResultTest:
Collaboration diagram for TitleArrayFromResultTest:

Public Member Functions

 provideTestValid ()
 
 testConstructionWithFalseRow ()
 TitleArrayFromResult::__construct. More...
 
 testConstructionWithRow ()
 TitleArrayFromResult::__construct. More...
 
 testCountWithVaryingValues ( $numRows)
 provideNumberOfRows TitleArrayFromResult::count More...
 
 testCurrentAfterConstruction ()
 TitleArrayFromResult::current. More...
 
 testValid ( $input, $expected)
 provideTestValid TitleArrayFromResult::valid More...
 

Static Public Member Functions

static provideNumberOfRows ()
 

Private Member Functions

 getMockResultWrapper ( $row=null, $numRows=1)
 
 getRowWithTitle ( $namespace=3, $title='foo')
 
 getTitleArrayFromResult ( $resultWrapper)
 

Detailed Description

Author
Addshore TitleArrayFromResult

Definition at line 7 of file TitleArrayFromResultTest.php.

Member Function Documentation

◆ getMockResultWrapper()

TitleArrayFromResultTest::getMockResultWrapper (   $row = null,
  $numRows = 1 
)
private

◆ getRowWithTitle()

TitleArrayFromResultTest::getRowWithTitle (   $namespace = 3,
  $title = 'foo' 
)
private

◆ getTitleArrayFromResult()

TitleArrayFromResultTest::getTitleArrayFromResult (   $resultWrapper)
private

◆ provideNumberOfRows()

static TitleArrayFromResultTest::provideNumberOfRows ( )
static

Definition at line 67 of file TitleArrayFromResultTest.php.

◆ provideTestValid()

TitleArrayFromResultTest::provideTestValid ( )

Definition at line 100 of file TitleArrayFromResultTest.php.

References false, getRowWithTitle(), and true.

◆ testConstructionWithFalseRow()

TitleArrayFromResultTest::testConstructionWithFalseRow ( )

◆ testConstructionWithRow()

TitleArrayFromResultTest::testConstructionWithRow ( )

◆ testCountWithVaryingValues()

TitleArrayFromResultTest::testCountWithVaryingValues (   $numRows)

◆ testCurrentAfterConstruction()

TitleArrayFromResultTest::testCurrentAfterConstruction ( )

◆ testValid()

TitleArrayFromResultTest::testValid (   $input,
  $expected 
)

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