more public accessors for Title class
authorDaniel Friesen <pub-github@nadir-seen-fire.com>
Thu, 30 Aug 2012 20:04:42 +0000 (13:04 -0700)
committerAntoine Musso <hashar@free.fr>
Mon, 1 Oct 2012 18:52:03 +0000 (20:52 +0200)
commit55a52d59156e026d225f3c78b09abbcd3085810f
tree8a5e69b92d1019046551e1287e770c0ab122d001
parent0d81130dd47970a71871dae4ff1f625ff6f33014
more public accessors for Title class

This patch adds new public accessor to the Title class. They are merely
returning the already existing conventions.

Added tests for the four new methods:
 - Title::getBaseText()
 - Title::getRootText()
 - Title::getRootTitle()
 - Title::getSubpageText()

The later does not test with $wgNamespacesWithSubpages variants.

Change-Id: I4f7230c1a5487b82d06c78a45c50436085df57be
includes/Title.php
tests/phpunit/includes/TitleTest.php