Skip to content
Snippets Groups Projects
Commit abec1631 authored by Enzo's avatar Enzo
Browse files

Ajout de /doc & /tests/res. Début de détection de sign. basée sur PHPWebshellDetector

parent 9d242bbe
No related branches found
No related tags found
No related merge requests found
......@@ -4,10 +4,6 @@ namespace Tests;
require __DIR__."/../src/util.php";
use PHPUnit\Framework\TestCase;
use function AnalyzerNS\removeAllWhiteSpaces;
use function AnalyzerNS\removeCRLF;
use function AnalyzerNS\removeMultiWhiteSpaces;
use function AnalyzerNS\removeWhiteSpacesOutsideString;
class UtilTest extends TestCase
{
......@@ -24,28 +20,28 @@ class UtilTest extends TestCase
public function testRemoveCRLF()
{
foreach ($this->strings as $string) {
$this->assertTrue(AnalyzerNS\removeCRLF($string) !== $string);
$this->assertTrue(removeCRLF($string) !== $string);
}
}
public function testRemoveMultiWhiteSpaces()
{
foreach ($this->strings as $string) {
$this->assertTrue(AnalyzerNS\removeMultiWhiteSpaces($string) !== $string);
$this->assertTrue(removeMultiWhiteSpaces($string) !== $string);
}
}
public function testRemoveAllWhiteSpaces()
{
foreach ($this->strings as $string) {
$this->assertTrue(AnalyzerNS\removeAllWhiteSpaces($string) !== $string);
$this->assertTrue(removeAllWhiteSpaces($string) !== $string);
}
}
public function testRemoveWhiteSpacesOutsideString()
{
foreach ($this->strings as $string) {
$this->assertTrue(AnalyzerNS\removeWhiteSpacesOutsideString(token_get_all($string)) !== $string);
$this->assertTrue(removeWhiteSpacesOutsideString(token_get_all($string)) !== $string);
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment