Canonicalization tests 108 through 125 (JavaScript & CSS) fail in EncoderTest because the wrong encoder is used. I verified this by putting a var_dump of the encoder instance in test 108:
This clearly shows it uses the wrong codecs. This is because each assertion is being done in a separate test. Before each test setUp() is run which resets the encoder to the one needed for HTML tests.
Canonicalization tests 108 through 125 (JavaScript & CSS) fail in
EncoderTest
because the wrong encoder is used. I verified this by putting avar_dump
of the encoder instance in test 108:This clearly shows it uses the wrong codecs. This is because each assertion is being done in a separate test. Before each test
setUp()
is run which resets the encoder to the one needed for HTML tests.There are at least four ways to solve this issue:
setUp()
(optionally combined with first sulution).setUp()
. This will create a lot of extra files.I tested the first option and it resolves all failed tests for JavaScript and CSS codecs.