Code Duplication    Length = 4-4 lines in 2 locations

tests/phpunit/test-wc-stripe-sub-initial.php 1 location

@@ 163-166 (lines=4) @@
160
				'setup_future_usage'   => 'off_session',
161
				'payment_method_types' => array( 'card' ),
162
			);
163
			foreach ( $expected_request_body_values as $key => $value ) {
164
				$this->assertArrayHasKey( $key, $request_args['body'] );
165
				$this->assertSame( $value, $request_args['body'][ $key ] );
166
			}
167
168
			// Assert: the request body contains these keys, without checking for their value.
169
			$expected_request_body_keys = array(

tests/phpunit/test-wc-stripe-sub-renewal.php 1 location

@@ 155-158 (lines=4) @@
152
				'confirmation_method'  => 'automatic',
153
				'statement_descriptor' => $statement_descriptor,
154
			);
155
			foreach ( $expected_request_body_values as $key => $value ) {
156
				$this->assertArrayHasKey( $key, $request_args['body'] );
157
				$this->assertSame( $value, $request_args['body'][ $key ] );
158
			}
159
160
			// Assert: the request body contains these keys, without checking for their value.
161
			$expected_request_body_keys = array(