From 1305d0b7f554be9bb4770ed14d62e04ec73be139 Mon Sep 17 00:00:00 2001 From: Enzo <enzo@localhost.localdomain> Date: Sun, 12 Nov 2017 19:13:35 +0100 Subject: [PATCH] =?UTF-8?q?Ajout=20de=20/doc=20&=20/tests/res.=20D=C3=A9bu?= =?UTF-8?q?t=20de=20d=C3=A9tection=20de=20sign.=20bas=C3=A9e=20sur=20PHPWe?= =?UTF-8?q?bshellDetector?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/UtilTest.php | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/tests/UtilTest.php b/tests/UtilTest.php index a8990a0..29fa863 100644 --- a/tests/UtilTest.php +++ b/tests/UtilTest.php @@ -4,7 +4,11 @@ namespace Tests; require_once __DIR__."/../src/util.php"; use PHPUnit\Framework\TestCase; -use \AnalyzerNS as util; +use function \AnalyzerNS\removeAllWhiteSpaces; +use function \AnalyzerNS\removeWhiteSpacesOutsideString; +use function AnalyzerNS\removeCRLF; +use function AnalyzerNS\removeMultiWhiteSpaces; + class UtilTest extends TestCase { @@ -21,28 +25,28 @@ class UtilTest extends TestCase public function testRemoveCRLF() { foreach ($this->strings as $string) { - $this->assertTrue(util\removeCRLF($string) !== $string); + $this->assertTrue(removeCRLF($string) !== $string); } } public function testRemoveMultiWhiteSpaces() { foreach ($this->strings as $string) { - $this->assertTrue(util\removeMultiWhiteSpaces($string) !== $string); + $this->assertTrue(removeMultiWhiteSpaces($string) !== $string); } } public function testRemoveAllWhiteSpaces() { foreach ($this->strings as $string) { - $this->assertTrue(util\removeAllWhiteSpaces($string) !== $string); + $this->assertTrue(removeAllWhiteSpaces($string) !== $string); } } public function testRemoveWhiteSpacesOutsideString() { foreach ($this->strings as $string) { - $this->assertTrue(util\removeWhiteSpacesOutsideString(token_get_all($string)) !== $string); + $this->assertTrue(removeWhiteSpacesOutsideString(token_get_all($string)) !== $string); } } } -- GitLab