void () { myMappingSettings.addMapping("C:/testPrj/src/test", "/web-project/foo"); myMappingSettings.addMapping("C:/testPrj/src/tests", "/web-project/bar"); Assert.assertEquals("/web-project/bar", myMappingSettings.convertToRemote("C:/testPrj/src/tests")); Assert.assertEquals("/web-project/foo", myMappingSettings.convertToRemote("C:/testPrj/src/test")); Assert.assertEquals("/web-project/bar/", myMappingSettings.convertToRemote("C:/testPrj/src/tests/")); Assert.assertEquals("/web-project/foo/", myMappingSettings.convertToRemote("C:/testPrj/src/test/")); Assert.assertEquals("/web-project/bar/my-test.php", myMappingSettings.convertToRemote("C:/testPrj/src/tests/my-test.php")); Assert.assertEquals("/web-project/foo/info.php", myMappingSettings.convertToRemote("C:/testPrj/src/test/info.php")); }