From 77e887efe9239531a32fa7dd37fc98b0b954d89c Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Wed, 13 Jun 2018 16:55:39 +0100 Subject: [PATCH] code standards --- .../class-wc-rest-unit-test-case.php | 37 ++++++++++--------- 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/tests/framework/class-wc-rest-unit-test-case.php b/tests/framework/class-wc-rest-unit-test-case.php index 1d497f70d6d..26ae2417c2d 100644 --- a/tests/framework/class-wc-rest-unit-test-case.php +++ b/tests/framework/class-wc-rest-unit-test-case.php @@ -7,27 +7,28 @@ * @since 3.0 */ - class WC_REST_Unit_Test_Case extends WC_Unit_Test_Case { +class WC_REST_Unit_Test_Case extends WC_Unit_Test_Case { - protected $server; + protected $server; - /** - * Setup our test server. - */ - public function setUp() { - parent::setUp(); - global $wp_rest_server; - $this->server = $wp_rest_server = new WP_Test_Spy_REST_Server; - do_action( 'rest_api_init' ); - } + /** + * Setup our test server. + */ + public function setUp() { + parent::setUp(); + global $wp_rest_server; + $wp_rest_server = new WP_Test_Spy_REST_Server(); + $this->server = $wp_rest_server; + do_action( 'rest_api_init' ); + } - /** - * Unset the server. - */ - public function tearDown() { - parent::tearDown(); + /** + * Unset the server. + */ + public function tearDown() { + parent::tearDown(); global $wp_rest_server; unset( $this->server ); - $wp_rest_server = null; - } + $wp_rest_server = null; + } }