Index: tests/phpunit/tests/canonical/spacesHyphens.php
===================================================================
--- tests/phpunit/tests/canonical/spacesHyphens.php	(revision 0)
+++ tests/phpunit/tests/canonical/spacesHyphens.php	(working copy)
@@ -0,0 +1,60 @@
+<?php
+
+require_once dirname( dirname( __FILE__ ) ) . '/canonical.php';
+
+/**
+ * @group canonical
+ * @group rewrite
+ * @group query
+ */
+class Tests_Canonical_NoRewrite extends Tests_Canonical {
+	var $structure = '';
+
+	var $canonical_post_id = 0;
+
+	function setUp() {
+		parent::setUp();
+
+		$this->author = new WP_User( $this->factory->user->create( array( 'role' => 'editor' ) ) );
+
+
+		$post = array(
+			'post_author' => $this->author->ID,
+			'post_status' => 'publish',
+			'post_content' => rand_str(),
+			'post_title' => "Hello World",
+			'post_name' => "hello-world",
+		);
+
+		// insert a post
+		$this->ID = wp_insert_post($post);
+		echo "\nInserted post $this->ID\n";
+		$this->canonical_post_id = $this->ID;
+		echo get_permalink($this->ID);
+
+	}
+
+	function tearDown() {
+		parent::tearDown();
+		wp_delete_post($this->canonical_post_id);
+	}
+
+	function data() {
+		/* Format:
+		 * [0]: $test_url,
+		 * [1]: expected results: Any of the following can be used
+		 *      array( 'url': expected redirection location, 'qv': expected query vars to be set via the rewrite AND $_GET );
+		 *      array( expected query vars to be set, same as 'qv' above )
+		 *      (string) expected redirect location
+		 * [3]: (optional) The ticket the test refers to, Can be skipped if unknown.
+		 */
+		update_option( 'permalink_structure', '/%postname%/');
+
+		return array(
+			array( '/hello%20world/', '/hello-world/' ),
+			array( '/hello%20%20world/', '/hello-world/' ),
+		);
+
+	}
+
+}
