You appear to be a bot. Output may be restricted
Description
Test that get_unsafe_client_ip() properly anonymizes all possible address formats
Usage
Tests_Admin_wpCommunityEvents::test_get_unsafe_client_ip( $raw_ip, $expected_result );
Parameters
- $raw_ip
- ( mixed ) required –
- $expected_result
- ( mixed ) required –
Returns
void
Source
File name: wordpress-develop-tests/phpunit/tests/admin/wpCommunityEvents.php
Lines:
1 to 9 of 9
public function test_get_unsafe_client_ip( $raw_ip, $expected_result ) { $_SERVER['REMOTE_ADDR'] = 'this should not be used'; $_SERVER['HTTP_CLIENT_IP'] = $raw_ip; $actual_result = WP_Community_Events::WP_Community_Events::get_unsafe_client_ip(); $this->assertSame( $expected_result, $actual_result ); }