Skip to content

Commit

Permalink
adjust tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sgiehl authored Jan 7, 2025
1 parent f9beadb commit e4a693f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/IPv6Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*/
class IPv6Test extends TestCase
{
public function getIPv6Data()
public static function getIPv6Data()
{
return array(
array('::ffff:192.168.0.1', '192.168.0.1'),
Expand All @@ -37,7 +37,7 @@ public function testToIPv4String($stringIp, $expected)
$this->assertEquals($expected, $ip->toIPv4String(), $stringIp);
}

public function getMappedIPv4Data()
public static function getMappedIPv4Data()
{
return array(
array(IP::fromStringIP('::ffff:192.168.0.1'), true),
Expand All @@ -63,7 +63,7 @@ public function testIsMappedIPv4(IPv6 $ip, $isMapped)
$this->assertEquals($isMapped, $ip->isMappedIPv4(), $ip);
}

public function getAddressesToAnonymize()
public static function getAddressesToAnonymize()
{
return array(
array('2001:db8:0:8d3:0:8a2e:70:7344', array(
Expand Down Expand Up @@ -100,7 +100,7 @@ public function testAnonymize($ipString, $expected)
}


public function getIPv4AddressesToAnonymize()
public static function getIPv4AddressesToAnonymize()
{
return array(
// ip, array( expected0, expected1, expected2, expected3, expected4 ),
Expand Down

0 comments on commit e4a693f

Please sign in to comment.