Resolve used lazy options in ParserOptions::optionsHash()
authorBrad Jorsch <bjorsch@wikimedia.org>
Mon, 26 Mar 2018 17:59:24 +0000 (13:59 -0400)
committerLegoktm <legoktm@member.fsf.org>
Tue, 15 May 2018 06:54:55 +0000 (06:54 +0000)
commitc3900e06becc6b829726cfe133bb6c680deb993d
treec4085b066484ce16f19d10952c3579164fa019db
parent355cccddf7587a7258164100a00c0fa9c4bb11b3
Resolve used lazy options in ParserOptions::optionsHash()

If a lazy option is passed to ParserOptions::optionsHash(), we should
resolve the option so the hash can incorporate the proper value instead
of omitting it.

Also, completely unrelatedly, refactor the hook overriding in the unit
test because people won't stop whining about it in code review.

Change-Id: I2df78ed90875c229090b503b65f20fbbbba7f237
includes/parser/ParserOptions.php
tests/phpunit/includes/parser/ParserOptionsTest.php