Test suite for revisions and date related magic variables.
authorAntoine Musso <hashar@users.mediawiki.org>
Wed, 2 Feb 2011 21:04:21 +0000 (21:04 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Wed, 2 Feb 2011 21:04:21 +0000 (21:04 +0000)
commit596956c928878cc432e57b27a83453f219df888a
tree95e9b68bf8735c0e61c2f180e7ddf8ab935a95d4
parent1734fe33cec41df34f04e8032444227122ab2882
Test suite for revisions and date related magic variables.

Tests should be carefully reviewed, please note there is are exceptions
for 'revisionday' and 'revisionmonth1' magics which are hardcoded in
the parser to return an integer.

Follow up r66200

TESTS:

$ php phpunit.php -c suite.xml --filter MagicVariable --testdox
PHPUnit 3.5.10 by Sebastian Bergmann.

MagicVariable
 [x] Currentday is un padded
 [x] Currentdaytwo is zero padded
 [x] Localday is un padded
 [x] Localdaytwo is zero padded
 [x] Currentmonth is zero padded
 [x] Currentmonthone is un padded
 [x] Localmonth is zero padded
 [x] Localmonthone is un padded
 [x] Revisionday is un padded
 [x] Revisiondaytwo is zero padded
 [x] Revisionmonth is zero padded
 [x] Revisionmonthone is un padded
$
tests/phpunit/includes/parser/MagicVariableTest.php [new file with mode: 0644]