File: README.md

package info (click to toggle)
mediawiki 1%3A1.43.3%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 417,464 kB
  • sloc: php: 1,062,949; javascript: 664,290; sql: 9,714; python: 5,458; xml: 3,489; sh: 1,131; makefile: 64
file content (17 lines) | stat: -rw-r--r-- 1,072 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
This directory contains data files for testing XML dumps.
Each file contains an XML structure, full or partial.
These data files are intended to be used with DumpAsserter::assertDOM().

The data files contain XML with variable placeholders using a mustache-like
syntax, e.g. {{site_name}}. The variable placeholder syntax is implemented by
DumpAsserter::resolveVars(), variable values can be defined using DumpAsserter::setVarMapping().
Any differences in whitespace and any comments in the XML files are ignored.

Data files may make use of the <test:data> and <test:end/> tags: <test:data> acts as a
wrapper for a sequence of elements and is ignored during comparison. <test:end/> terminates
the comparison, and causes all subsequent content of the file to be ignored.
The behavior of the <test:data> and <test:end/> tags is controlled by DumpAsserter::assertDOM().

The names of these files, the data they contain, as well as the names of the
variables used, are determined by the PageDumpTestDataTrait, which is a trait
used by some of the subclasses of DumpTestCase.