diff --git a/test/unit/FileSystem/DirectoryWalkerTest.php b/test/unit/FileSystem/DirectoryWalkerTest.php
index <HASH>..<HASH> 100644
--- a/test/unit/FileSystem/DirectoryWalkerTest.php
+++ b/test/unit/FileSystem/DirectoryWalkerTest.php
@@ -21,9 +21,6 @@ class DirectoryWalkerTest extends TestCase {
 		$randomDirectoryCount = mt_rand($webenginePosition, $numDirectories);
 		$directoryListUpToParent = array_splice($directoryList, 0, $randomDirectoryCount);
 		$parentDirectory = implode(DIRECTORY_SEPARATOR, $directoryListUpToParent);
-		if(DIRECTORY_SEPARATOR === "/") {
-			$parentDirectory = "/$parentDirectory";
-		}
 
 // Create a directory in the $parent_path to look for:
 		$directoryName = $this->getRandomName();
Do not add extra slash on Unix systems