Split up testHelpers.inc, break off fuzz testing
authorTim Starling <tstarling@wikimedia.org>
Mon, 29 Aug 2016 22:27:54 +0000 (08:27 +1000)
committerTim Starling <tstarling@wikimedia.org>
Wed, 7 Sep 2016 23:06:45 +0000 (09:06 +1000)
commita387fee3970b04a2fe955d5a443fa459deddcc19
tree4ffd4bb7ce8bfe9e42ac854aed846a1f85c90bd1
parent544561106282ea6cfcd472d460c879fe92f40007
Split up testHelpers.inc, break off fuzz testing

* Split up testHelpers.inc into one class per file, with the file named
  after the class per the usual convention. Put them in tests/parser
  since they are all parser-related, even though a couple are reused by
  other unit tests.
* Also rename parserTest.inc and parserTestsParserHook.php to follow the
  usual convention, and split off ParserTestResultNormalizer
* Move fuzz testing out to its own maintenance script. It's really not
  helpful to have fuzz testing, which is designed to run forever,
  exposed as a PHPUnit test.
* Increased fuzz test memory limit, and increased the memory headroom for
  getMemoryBreakdown(), since HHVM's ReflectionClass has an internal
  cache which uses quite a lot of memory.
* Temporarily switched a couple of ParserTest methods from private to
  public to support fuzz testing from a separate class -- I plan on
  replacing this interface in a subsequent commit.

Change-Id: Ib1a07e109ec1005bff2751b78eb4de35f2dfc472
19 files changed:
tests/TestsAutoLoader.php
tests/parser/DbTestPreviewer.php [new file with mode: 0644]
tests/parser/DbTestRecorder.php [new file with mode: 0644]
tests/parser/DelayedParserTest.php [new file with mode: 0644]
tests/parser/DjVuSupport.php [new file with mode: 0644]
tests/parser/ITestRecorder.php [new file with mode: 0644]
tests/parser/ParserTest.php [new file with mode: 0644]
tests/parser/ParserTestParserHook.php [new file with mode: 0644]
tests/parser/ParserTestResultNormalizer.php [new file with mode: 0644]
tests/parser/TestFileDataProvider.php [new file with mode: 0644]
tests/parser/TestFileIterator.php [new file with mode: 0644]
tests/parser/TestRecorder.php [new file with mode: 0644]
tests/parser/TidySupport.php [new file with mode: 0644]
tests/parser/fuzzTest.php [new file with mode: 0644]
tests/parser/parserTest.inc [deleted file]
tests/parser/parserTestsParserHook.php [deleted file]
tests/parserTests.php
tests/phpunit/includes/parser/NewParserTest.php
tests/testHelpers.inc [deleted file]