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

Hotfix/failing unit tests #1269

Merged
merged 2 commits into from
Aug 10, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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());
}
}