Fix testGetCanonicalName PHPUnit test:
authorMatthew Flaschen <mflaschen@wikimedia.org>
Fri, 27 Feb 2015 05:35:08 +0000 (00:35 -0500)
committerMattflaschen <mflaschen@wikimedia.org>
Fri, 27 Feb 2015 06:06:06 +0000 (06:06 +0000)
commite980ec63fdc84a6cae5589d87dcc250062ce6e45
tree0059d28bb6616ea7c8e68b44ad2fbf61ebc6ff15
parent2762888e0d0ee50dc171eca771285e7c8a2ed679
Fix testGetCanonicalName PHPUnit test:

* assertEquals takes expected, prior to actual
  https://phpunit.de/manual/3.7/en/writing-tests-for-phpunit.html#writing-tests-for-phpunit.assertions.assertEquals
* ' trailing space ' test was failing with wgCapitalLinks false.  Since the test is not about that,
  I changed it to ' Trailing space '.  The alternative would be to force wgCapitalLinks to true
  with setMwGlobals or skip the test if it's true.

Change-Id: I677273045bdabb6248ffe2c2f003a3673b3fa51c
tests/phpunit/includes/UserTest.php