100% test coverage for NamespaceInfo
authorAryeh Gregor <ayg@aryeh.name>
Tue, 30 Apr 2019 15:13:58 +0000 (18:13 +0300)
committerAryeh Gregor <ayg@aryeh.name>
Mon, 6 May 2019 11:17:06 +0000 (14:17 +0300)
commita220518f8fe34b02eeecbc272cf043fea852b599
tree5377b39201498dfe563bc4d572f82e3d717d8be5
parentd183642dfb1ef04d8c3dd552a103c9897035df94
100% test coverage for NamespaceInfo

In the new tests I added, I tried to cover all interesting scenarios and
not just hit each line to make the coverage green. But I didn't review
all the existing tests to see if they were properly thorough, so there
might still be room for improvement.

I uncovered a bug here that will be addressed in a separate commit,
because the fix is not so simple. For now I left the test expectation as
a @todo.

Change-Id: I33d556bf83c631a8a02a6c77f2f5cb06b8dbf869
includes/title/NamespaceInfo.php
tests/phpunit/includes/title/NamespaceInfoTest.php