You appear to be a bot. Output may be restricted
Description
Tests are_you_local_ip for qw
Usage
Tests_libs_class_oik_remote::test_are_you_local_ip_qw();
Parameters
Returns
voidSource
File name: oik-libs/tests/test-libs-class-oik-remote.phpLines:
1 to 9 of 9
function test_are_you_local_ip_qw() { $local = oik_remote::are_you_local_ip( "http://qw" ); if ( $_SERVER['SERVER_NAME'] == 'qw' ) { $this->assertTrue( $local, "qw is supposed to be local when it matches the SERVER_NAME ." ); } else { $this->assertFalse( $local, "qw is not local when it doesn't match the SERVER_NAME" ); } }View on GitHub