wiki.techinc.nl/tests/phpunit/includes/resourceloader
Timo Tijhof 9e1e44910e resourceloader: Add missing (string) cast to ClientHtml tests
One of the assertions already did this, but the others not yet.

The reason we do this is because the return value is a WrappedString
object. The assertEquals() method is able to satisfy the expected
value because of loose comparison casting it to a string for the
case where it matches.

But, when it fails during development, PHPUnit was still printing
the object as "Actual" and the string as "Expected" which makes
it difficult to understand what's going on, and also no diff.

Change-Id: Ice9fe5061fb76867e9bee2f34c88d3ddac3144f9
2019-04-07 00:14:22 +01:00
..
templates
DerivativeResourceLoaderContextTest.php resourceloader: Improve test cases for DerivativeResourceLoaderContext 2019-03-27 19:47:05 +00:00
MessageBlobStoreTest.php resourceloader: Improve test cases for MessageBlobStore 2019-03-27 23:53:23 +00:00
ResourceLoaderClientHtmlTest.php resourceloader: Add missing (string) cast to ClientHtml tests 2019-04-07 00:14:22 +01:00
ResourceLoaderContextTest.php Generalize ResourceLoader 'excludepage' functionality 2018-04-25 00:37:08 +00:00
ResourceLoaderFileModuleTest.php resourceloader: Change 'packageFiles' format to be JSON-compatible 2019-02-22 19:06:39 +00:00
ResourceLoaderImageModuleTest.php Use ::class to resolve class names in tests 2018-01-26 22:49:13 +01:00
ResourceLoaderImageTest.php Use fallback languages in ResourceLoaderImage 2018-04-01 20:41:01 +01:00
ResourceLoaderLessVarFileModuleTest.php Add missing empty lines between methods 2019-01-15 19:14:35 +00:00
ResourceLoaderModuleTest.php resourceloader: Remove selective build optimisation from getModuleContent() 2018-08-30 21:02:57 +00:00
ResourceLoaderOOUIImageModuleTest.php Use ::class to resolve class names in tests 2018-01-26 22:49:13 +01:00
ResourceLoaderSkinModuleTest.php resourceloader: Remove unused static SkinModule::getLogo method 2018-08-28 23:50:50 +01:00
ResourceLoaderStartUpModuleTest.php resourceloader: Move registering of custom sources to ServiceWiring 2019-03-29 01:46:34 +00:00
ResourceLoaderTest.php resourceloader: Move registering of custom sources to ServiceWiring 2019-03-29 01:46:34 +00:00
ResourceLoaderWikiModuleTest.php Clear the title cache in MutableRevisionRecordTest 2018-10-25 21:16:27 +00:00