MediaWiki  master
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')
 

Additional Inherited Members

- Protected Member Functions inherited from MediaWikiUnitTestCase
 setTemporaryHook ( $hookName, $handler)
 Create a temporary hook handler which will be reset by tearDown. More...
 
 setUp ()
 
 tearDown ()
 

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

◆ provideNumberOfRows()

static TitleArrayFromResultTest::provideNumberOfRows ( )
static

Definition at line 63 of file TitleArrayFromResultTest.php.

◆ provideTestValid()

TitleArrayFromResultTest::provideTestValid ( )

Definition at line 96 of file TitleArrayFromResultTest.php.

References false, getRowWithTitle(), and true.

◆ testConstructionWithFalseRow()

TitleArrayFromResultTest::testConstructionWithFalseRow ( )

◆ testConstructionWithRow()

TitleArrayFromResultTest::testConstructionWithRow ( )

◆ testCountWithVaryingValues()

TitleArrayFromResultTest::testCountWithVaryingValues (   $numRows)

provideNumberOfRows TitleArrayFromResult::count

Definition at line 75 of file TitleArrayFromResultTest.php.

References getMockResultWrapper(), and getRowWithTitle().

◆ testCurrentAfterConstruction()

TitleArrayFromResultTest::testCurrentAfterConstruction ( )

◆ testValid()

TitleArrayFromResultTest::testValid (   $input,
  $expected 
)

provideTestValid TitleArrayFromResult::valid

Definition at line 107 of file TitleArrayFromResultTest.php.

References $input, and getMockResultWrapper().


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