33.57.252.246'; $output = protect_ip($input); $this->assertEquals($output, $expected); } public function testProtectsIpv6Address(){ $expected = 'Some ban message: xxxx'; // Random IP, hope it's not yours $input = 'Some ban message: 5e85:f252:9baf:2131:8984:6ab2:3db0:fa48'; $output = protect_ip($input); $this->assertEquals($output, $expected); } }