Code style fixes + more tests for invalid UTF-8 log.
This commit is contained in:
parent
3f6bec3a6b
commit
16755eadd4
5 changed files with 56 additions and 30 deletions
|
|
@ -80,6 +80,30 @@ EOD;
|
|||
public function testFindBinary_ReturnsNullWihQuietArgument()
|
||||
{
|
||||
$thisFileName = "WorldWidePeace";
|
||||
$this->assertNull($this->testedExecutor->findBinary($thisFileName, true));
|
||||
$this->assertFalse($this->testedExecutor->findBinary($thisFileName, true));
|
||||
}
|
||||
|
||||
public function testReplaceIllegalCharacters()
|
||||
{
|
||||
$this->assertEquals(
|
||||
\Normalizer::normalize("start <20> end"),
|
||||
\Normalizer::normalize($this->testedExecutor->replaceIllegalCharacters(
|
||||
"start \xf0\x9c\x83\x96 end"
|
||||
))
|
||||
);
|
||||
|
||||
$this->assertEquals(
|
||||
\Normalizer::normalize("start <20> end"),
|
||||
\Normalizer::normalize($this->testedExecutor->replaceIllegalCharacters(
|
||||
"start \xF0\x9C\x83\x96 end"
|
||||
))
|
||||
);
|
||||
|
||||
$this->assertEquals(
|
||||
\Normalizer::normalize("start 123_X08<30>_X00<30>_Xa<58>_5432 end"),
|
||||
\Normalizer::normalize($this->testedExecutor->replaceIllegalCharacters(
|
||||
"start 123_X08\x08_X00\x00_Xa4\xa4_5432 end"
|
||||
))
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue