MDL-38829 core: Rewrite xmlize unit tests

These changes adjust the unit tests to compare known values rather than
calculating them on the fly.

The unit test against a 'bad' source has been modified to simply check
for the relevant exception as PHP prevents any output on exceptions
anyway.
This commit is contained in:
Andrew Nicols 2018-03-06 22:07:34 +08:00
parent 533a7edeae
commit 79e4395888
2 changed files with 116 additions and 233 deletions

File diff suppressed because one or more lines are too long