Convert most libs/ tests to use PHPUnit_Framework_TestCase

They don't actually need any of the mess that MediaWikiTestCase provides

Change-Id: Ibd067480fc294096d1249132cb800e09889efb18