MediaWiki  master
PathRouterTest Class Reference

Tests for the PathRouter parsing. More...

Inheritance diagram for PathRouterTest:
Collaboration diagram for PathRouterTest:

Public Member Functions

 testParse ( $patterns, $path, $expected)
 Test path parsing provideParse. More...
 testWeight ( $path, $expected)
 Test to ensure weight of paths is handled correctly provideWeight. More...

Static Public Member Functions

static callbackForTest (&$matches, $data)
static provideParse ()
static provideWeight ()

Protected Member Functions

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

Protected Attributes

PathRouter $basicRouter

Detailed Description

Tests for the PathRouter parsing.


Definition at line 8 of file PathRouterTest.php.

Member Function Documentation

◆ callbackForTest()

static PathRouterTest::callbackForTest ( $matches,

Definition at line 286 of file PathRouterTest.php.

References $matches.

◆ provideParse()

static PathRouterTest::provideParse ( )

Definition at line 22 of file PathRouterTest.php.

References as, title, and wiki.

◆ provideWeight()

static PathRouterTest::provideWeight ( )

Definition at line 291 of file PathRouterTest.php.

◆ setUp()

PathRouterTest::setUp ( )

Definition at line 15 of file PathRouterTest.php.

References PathRouter\add().

◆ testParse()

PathRouterTest::testParse (   $patterns,

Test path parsing provideParse.

Definition at line 270 of file PathRouterTest.php.

References $matches, $path, PathRouter\add(), and as.

◆ testWeight()

PathRouterTest::testWeight (   $path,

Test to ensure weight of paths is handled correctly provideWeight.

Definition at line 310 of file PathRouterTest.php.

References $path, and PathRouter\addStrict().

Member Data Documentation

◆ $basicRouter

PathRouter PathRouterTest::$basicRouter

Definition at line 13 of file PathRouterTest.php.

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