Index: tests/phpunit/includes/spy-rest-server.php
===================================================================
--- tests/phpunit/includes/spy-rest-server.php	(revision 45550)
+++ tests/phpunit/includes/spy-rest-server.php	(working copy)
@@ -27,10 +27,21 @@
 		return call_user_func_array( array( $this, $method ), $args );
 	}
 
+	/**
+	 * Sets a header that will be send by doing the request.
+	 *
+	 * @param string $header The header name.
+	 * @param string $value  THe header value.
+	 */
 	public function send_header( $header, $value ) {
 		$this->sent_headers[ $header ] = $value;
 	}
 
+	/**
+	 * Unsets a header that will be send.
+	 *
+	 * @param string $header The header to remove.
+	 */
 	public function remove_header( $header ) {
 		unset( $this->sent_headers[ $header ] );
 	}
@@ -60,6 +71,13 @@
 		parent::register_route( $namespace, $route, $route_args, $override || $this->override_by_default );
 	}
 
+	/**
+	 * Serves the request and returns the result.
+	 *
+	 * @param null|string $path The path to request.
+	 *
+	 * @return false|null Null if not served and a HEAD request, false otherwise.
+	 */
 	public function serve_request( $path = null ) {
 
 		ob_start();
