Le 05/10/12 21:40, Daniel Friesen wrote:
> The same case probably goes for a number of our other config variables.
> 
> There are a few places where we go and swap out the value of a config
> variable and then reset it.
> Last one I saw was wgHtml5 in HtmlTests. However even that is almost
> never actually used. We don't bother testing both situations.
> 
> We should probably introduce some code to make tweaking and then
> resetting config in tests easy so we can write more of our tests to
> check different modes of config.

PHPUnit comes with a feature to automatically backup globals though we
always had it disabled ( tests/phpunit/suite.xml has
backupglobals=false).  I have never investigated the use of this
mechanism, that could potentially save us some troubles.

-- 
Antoine "hashar" Musso


_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to