assertTrue( false !== strpos( $url, 'test=test' ) ); return array( 'response' => 200, 'status_code' => 200, 'success' => 1, 'body' => '{}', ); }, 10, 3 ); add_filter( 'woocommerce_explat_request_args', function( $args ) { $args['test'] = 'test'; return $args; }, 10, 1 ); $exp = new Experimental_Abtest( 'anon', 'platform', true ); $exp->get_variation( 'control' ); } }