Index: tests/phpunit/tests/functions/wp.php
===================================================================
--- tests/phpunit/tests/functions/wp.php	(nonexistent)
+++ tests/phpunit/tests/functions/wp.php	(working copy)
@@ -0,0 +1,26 @@
+<?php
+/**
+ * wordpress-develop.
+ * User: Paul
+ * Date: 2019-11-20
+ *
+ */
+
+if ( ! defined( 'WPINC' ) ) {
+	die;
+}
+
+class Tests_Functions_WP extends WP_UnitTestCase {
+
+	public function test_wp_sets_global_var_to_class() {
+		global $wp, $wp_query, $wp_the_query;
+
+		wp();
+		$this->assertInstanceOf( WP::class, $wp );
+        $this->assertInstanceOf( WP_Query::class, $wp_query );
+        $this->assertInstanceOf( WP_Query::class, $wp_the_query );
+
+        $this->assertSame( $wp_query, $wp_the_query );
+	}
+
+}
\ No newline at end of file
