Skip to content
This repository has been archived by the owner on Dec 11, 2020. It is now read-only.

Commit

Permalink
Use RegExp instead of binary shifting
Browse files Browse the repository at this point in the history
  • Loading branch information
ravage84 committed Aug 26, 2015
1 parent c2d1030 commit d38e8c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/Faker/Provider/InternetTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public function testIpv4()

public function testIpv4NotLocalNetwork()
{
$this->assertNotEquals('1.0.0.0', long2ip(ip2long($this->faker->ipv4()) & (-1 << (32 - 8))));
$this->assertNotRegExp('/\A1\./', $this->faker->ipv4());
}

public function testIpv4NotBroadcast()
Expand Down

0 comments on commit d38e8c1

Please sign in to comment.