Index: tests/admin/includesFile.php
===================================================================
--- tests/admin/includesFile.php	(revision 1150)
+++ tests/admin/includesFile.php	(working copy)
@@ -12,6 +12,7 @@
 
 	/**
 	 * @ticket 20449
+	 * @ticket 18768
 	 */
 	function test_get_home_path() {
 		$home = get_option( 'home' );
@@ -31,6 +32,9 @@
 		$_SERVER['SCRIPT_FILENAME'] = 'S:/home/wordpress/trunk/wp/wp-admin/options-permalink.php';
 		$this->assertEquals( 'S:/home/wordpress/trunk/', get_home_path() );
 
+		$_SERVER['SCRIPT_FILENAME'] = '/Users/foo/Sites/vhosts/wp.dev/wp/wp-admin/options-permalink.php';
+		$this->assertEquals( '/Users/foo/Sites/vhosts/wp.dev/', get_home_path() );
+
 		update_option( 'home', $home );
 		update_option( 'siteurl', $siteurl );
 		$_SERVER['SCRIPT_FILENAME'] = $sfn;
