The test will try to match each XML file in input directory with
the file of the same name in the output directory.
It is possible to test lossy conversion as well (say legacy ezxml).
To use this filename of the fixture that is converted with data loss
needs to end with .lossy.xml. As input test with this fixture will
be skipped, but as output fixture it will be matched to the input
fixture file of the same name but without .lossy part.
If input file could not be matched with output file, test will be
marked as incomplete, meaning pairing of fixtures is expected.
To implement additional tests for lossy conversion put the test
fixtures inside "lossy" subdirectory in the input directory. This
directory needs to contain both source and destination fixtures, matched
by the filename and part of the filename directly before the file extension.
This part of the filename will be matched from the name of fixture
subdirectories.
Example for conversion from ezxml to docbook:
.../_fixtures/ezxml/lossy/001-sectionNested.ezxml.xml
will be converted to with:
.../_fixtures/ezxml/lossy/001-sectionNested.docbook.xml
Comments in fixtures are removed before conversion, so be free to use
comments inside fixtures for documentation as needed.
Example:
return array(
"input" => "docbook",
"output" => "ezxml"
);