diff --git tests/phpunit/tests/functions/wpRemoteFopen.php tests/phpunit/tests/functions/wpRemoteFopen.php
new file mode 100644
index 0000000000..0bf7db156d
--- /dev/null
+++ tests/phpunit/tests/functions/wpRemoteFopen.php
@@ -0,0 +1,24 @@
+<?php
+/**
+ * @group external-http
+ * @group functions.php
+ */
+class Tests_wp_remote_fopen extends WP_UnitTestCase {
+
+	public function test_wp_remote_fopen_empty() {
+		$this->assertFalse( wp_remote_fopen('') );
+	}
+
+	public function test_wp_remote_fopen_bad_url() {
+		$this->assertFalse( wp_remote_fopen('wp.com') );
+	}
+
+	public function test_wp_remote_fopen() {
+		// this url give a direct 200 response
+		$url      = 'https://asdftestblog1.wordpress.com/404';
+		$response = wp_remote_fopen( $url );
+
+		$this->assertInternalType( 'string', $response );
+		$this->assertRegexp( '/<!DOCTYPE html>/', $response );
+	}
+}
