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

Commit

Permalink
Merge pull request #1269 from zachflower/hotfix/failing-unit-tests
Browse files Browse the repository at this point in the history
Hotfix/failing unit tests
  • Loading branch information
fzaninotto authored Aug 10, 2017
2 parents 76ef45e + 3e05061 commit ab30da8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions test/Faker/Provider/InternetTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class InternetTest extends \PHPUnit_Framework_TestCase
* @var Generator
*/
private $faker;

public function setUp()
{
$faker = new Generator();
Expand Down Expand Up @@ -53,7 +53,7 @@ public function testEmailIsValid($locale)
$emailAddress = $this->faker->email();
$this->assertRegExp($pattern, $emailAddress);
}

/**
* @dataProvider localeDataProvider
*/
Expand Down Expand Up @@ -146,7 +146,7 @@ public function testIpv4()

public function testIpv4NotLocalNetwork()
{
$this->assertNotRegExp('/\A1\./', $this->faker->ipv4());
$this->assertNotRegExp('/\A0\./', $this->faker->ipv4());
}

public function testIpv4NotBroadcast()
Expand Down
2 changes: 1 addition & 1 deletion test/Faker/Provider/MiscellaneousTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,6 @@ public function testCurrencyCode()

public function testEmoji()
{
$this->assertRegExp('/^[\x{1F600}-\x{1F636}]$/u', Miscellaneous::emoji());
$this->assertRegExp('/^[\x{1F600}-\x{1F637}]$/u', Miscellaneous::emoji());
}
}

0 comments on commit ab30da8

Please sign in to comment.