Validate the output of the dump scripts.
authordaniel <dkinzler@wikimedia.org>
Fri, 14 Dec 2018 11:06:45 +0000 (12:06 +0100)
committerdaniel <dkinzler@wikimedia.org>
Wed, 20 Mar 2019 21:25:20 +0000 (22:25 +0100)
commit94d559b1497475ca58961b8d1bb62ca58409ebf1
treec88c9f7eefb4f51271bdc496355af4324ff4053d
parent5988e355054dd73d64acfaef710edd15f9519a60
Validate the output of the dump scripts.

This introduces XML schema validation into the unit tests for
the backup dump scripts. This is intended to ensure that the
output keeps conforming to the schema when updating XmlDumpWriter
and friends to support newer schema versions.

Bug: T174031
Change-Id: Iafa8cb8ba5b3684a08172e92974edaf0482f19b7
docs/export-0.10.xsd
tests/common/TestsAutoLoader.php
tests/phpunit/PHPUnit4And6Compat.php
tests/phpunit/maintenance/DumpAsserter.php [new file with mode: 0644]
tests/phpunit/maintenance/DumpTestCase.php
tests/phpunit/maintenance/backupTextPassTest.php
tests/phpunit/maintenance/backup_LogTest.php
tests/phpunit/maintenance/backup_PageTest.php
tests/phpunit/maintenance/xml.xsd [new file with mode: 0644]