/** * @test */ public function normalizeDirectorySeparator_windowsPathGiven_changeDirectorySeparator() { $returnValue = PathNormalizer::normalizeDirectorySeparator('C:\\path\\to\\some\\file.php'); $this->assertEquals('C:/path/to/some/file.php', $returnValue); }
/** * @param string $path * * @return string */ private function normalizeAndRelativePath($path) { $path = PathNormalizer::normalizeDirectorySeparator($path); return PathNormalizer::makeRelativeTo($path, $this->sourceDir); }