Testing replaceIllegalCharacters without doing normalisation

We do not use any compound characters, so normalisation is a no op.
This commit is contained in:
SimonHeimberg 2018-02-07 10:57:47 +01:00
parent 2da98f6ff1
commit 2d67afc4c7

View file

@ -86,24 +86,24 @@ EOD;
public function testReplaceIllegalCharacters()
{
$this->assertEquals(
\Normalizer::normalize("start <20> end"),
\Normalizer::normalize($this->testedExecutor->replaceIllegalCharacters(
"start <20> end",
$this->testedExecutor->replaceIllegalCharacters(
"start \xf0\x9c\x83\x96 end"
))
)
);
$this->assertEquals(
\Normalizer::normalize("start <20> end"),
\Normalizer::normalize($this->testedExecutor->replaceIllegalCharacters(
"start <20> end",
$this->testedExecutor->replaceIllegalCharacters(
"start \xF0\x9C\x83\x96 end"
))
)
);
$this->assertEquals(
\Normalizer::normalize("start 123_X08<30>_X00<30>_Xa4<61>_5432 end"),
\Normalizer::normalize($this->testedExecutor->replaceIllegalCharacters(
"start 123_X08<30>_X00<30>_Xa4<61>_5432 end",
$this->testedExecutor->replaceIllegalCharacters(
"start 123_X08\x08_X00\x00_Xa4\xa4_5432 end"
))
)
);
}
}