Index: /media/sf_www/wordpress-develop/tests/phpunit/tests/filesystem/find_folder.php
===================================================================
--- /media/sf_www/wordpress-develop/tests/phpunit/tests/filesystem/find_folder.php	(revision 25270)
+++ /media/sf_www/wordpress-develop/tests/phpunit/tests/filesystem/find_folder.php	(working copy)
@@ -104,4 +104,27 @@
 		$this->assertEquals( '/example.com/sub/wp-content/plugins/', $path );
 	}
 
+	/**
+	 * Server Configuration where the local path contains no token that exists in the FTP path
+	 *
+	 * In this case, ftp: /example.com/ ~= web: /home/domain/12345/
+	 *
+	 * @ticket 23845
+	 */
+	function test_server_basepath_mismatches2() {
+		global $wp_filesystem;
+		$fs = $wp_filesystem;
+		$fs->init('
+			/example.com/index.php
+			/example.com/wp-includes/
+			/example.com/wp-content/plugins/
+		');
+
+		$path = $fs->abspath( '/home/domain/12345/' );
+		$this->assertEquals( '/example.com/', $path );
+
+		$path = $fs->find_folder( '/home/domain/12345/wp-content/plugins/' );
+		$this->assertEquals( '/example.com/wp-content/plugins/', $path );
+	}
+
 }
\ No newline at end of file
