Index: tests/phpunit/tests/formatting/Autoembed.php
===================================================================
--- tests/phpunit/tests/formatting/Autoembed.php	(revision 0)
+++ tests/phpunit/tests/formatting/Autoembed.php	(working copy)
@@ -0,0 +1,33 @@
+<?php
+
+/**
+ * @group formatting
+ */
+class Tests_Formatting_Autoembed extends WP_UnitTestCase {
+
+	/**
+	 * @covers WP_Embed::autoembed
+	 * @covers WP_Embed::autoembed_callback
+	 */
+	public function test_autoembed_empty() {
+		$embed = new WP_Embed();
+		$content = '';
+
+		$result = $embed->autoembed( $content );
+		$this->assertEquals( $content, $result );
+	}
+
+	/**
+	 * @covers WP_Embed::autoembed
+	 * @covers WP_Embed::autoembed_callback
+	 * @ticket 23776
+	 */
+	public function test_autoembed_no_http_paragraph() {
+		$embed = new WP_Embed();
+		$content = "$ my command\nFirst line.\n\nhttp://example.com/1/\nhttp://example.com/2/\nLast line.";
+
+		$result = $embed->autoembed( $content );
+		$this->assertEquals( $content, $result );
+	}
+
+}
