MediaWiki  master
TitleValueTest Class Reference

TitleValue. More...

Inheritance diagram for TitleValueTest:
Collaboration diagram for TitleValueTest:

Public Member Functions

 badConstructorProvider ()
 
 fragmentTitleProvider ()
 
 getTextProvider ()
 
 goodConstructorProvider ()
 
 provideTestToString ()
 
 testConstruction ( $ns, $text, $fragment, $interwiki, $hasFragment, $hasInterwiki)
 goodConstructorProvider More...
 
 testConstructionErrors ( $ns, $text, $fragment, $interwiki)
 badConstructorProvider More...
 
 testCreateFragmentTitle (TitleValue $title, $fragment)
 fragmentTitleProvider More...
 
 testGetText ( $dbkey, $text)
 getTextProvider More...
 
 testToString (TitleValue $value, $expected)
 provideTestToString More...
 

Additional Inherited Members

- Protected Member Functions inherited from MediaWikiUnitTestCase
 setUp ()
 
 tearDown ()
 

Detailed Description

TitleValue.

Title

Definition at line 27 of file TitleValueTest.php.

Member Function Documentation

◆ badConstructorProvider()

TitleValueTest::badConstructorProvider ( )

Definition at line 54 of file TitleValueTest.php.

References NS_MAIN, NS_USER, and null.

◆ fragmentTitleProvider()

TitleValueTest::fragmentTitleProvider ( )

Definition at line 86 of file TitleValueTest.php.

References NS_CATEGORY, NS_MAIN, and NS_TALK.

◆ getTextProvider()

TitleValueTest::getTextProvider ( )

Definition at line 105 of file TitleValueTest.php.

◆ goodConstructorProvider()

TitleValueTest::goodConstructorProvider ( )

Definition at line 29 of file TitleValueTest.php.

References false, NS_MAIN, NS_USER, and true.

◆ provideTestToString()

TitleValueTest::provideTestToString ( )

Definition at line 121 of file TitleValueTest.php.

◆ testConstruction()

TitleValueTest::testConstruction (   $ns,
  $text,
  $fragment,
  $interwiki,
  $hasFragment,
  $hasInterwiki 
)

goodConstructorProvider

Definition at line 40 of file TitleValueTest.php.

References $title.

◆ testConstructionErrors()

TitleValueTest::testConstructionErrors (   $ns,
  $text,
  $fragment,
  $interwiki 
)

badConstructorProvider

Definition at line 81 of file TitleValueTest.php.

References class.

◆ testCreateFragmentTitle()

TitleValueTest::testCreateFragmentTitle ( TitleValue  $title,
  $fragment 
)

fragmentTitleProvider

Definition at line 97 of file TitleValueTest.php.

References TitleValue\createFragmentTarget(), TitleValue\getNamespace(), and TitleValue\getText().

◆ testGetText()

TitleValueTest::testGetText (   $dbkey,
  $text 
)

getTextProvider

Definition at line 115 of file TitleValueTest.php.

References $title, and NS_MAIN.

◆ testToString()

TitleValueTest::testToString ( TitleValue  $value,
  $expected 
)

provideTestToString

Definition at line 143 of file TitleValueTest.php.

References TitleValue\__toString().


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