From 2d67afc4c7006f422716ba03f6362b6388f62e87 Mon Sep 17 00:00:00 2001 From: SimonHeimberg Date: Wed, 7 Feb 2018 10:57:47 +0100 Subject: [PATCH] Testing replaceIllegalCharacters without doing normalisation We do not use any compound characters, so normalisation is a no op. --- tests/PHPCensor/Helper/CommandExecutorTest.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/tests/PHPCensor/Helper/CommandExecutorTest.php b/tests/PHPCensor/Helper/CommandExecutorTest.php index af130aa2..e5dea453 100644 --- a/tests/PHPCensor/Helper/CommandExecutorTest.php +++ b/tests/PHPCensor/Helper/CommandExecutorTest.php @@ -86,24 +86,24 @@ EOD; public function testReplaceIllegalCharacters() { $this->assertEquals( - \Normalizer::normalize("start � end"), - \Normalizer::normalize($this->testedExecutor->replaceIllegalCharacters( + "start � end", + $this->testedExecutor->replaceIllegalCharacters( "start \xf0\x9c\x83\x96 end" - )) + ) ); $this->assertEquals( - \Normalizer::normalize("start � end"), - \Normalizer::normalize($this->testedExecutor->replaceIllegalCharacters( + "start � end", + $this->testedExecutor->replaceIllegalCharacters( "start \xF0\x9C\x83\x96 end" - )) + ) ); $this->assertEquals( - \Normalizer::normalize("start 123_X08�_X00�_Xa4�_5432 end"), - \Normalizer::normalize($this->testedExecutor->replaceIllegalCharacters( + "start 123_X08�_X00�_Xa4�_5432 end", + $this->testedExecutor->replaceIllegalCharacters( "start 123_X08\x08_X00\x00_Xa4\xa4_5432 end" - )) + ) ); } }