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

Commit

Permalink
Fix tests for mobile numbers without separators
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Van Poeck committed Nov 2, 2017
1 parent 877aa2b commit 4e75c77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/Faker/Provider/fr_FR/PhoneNumberTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function testMobileNumber06()
{
do {
$mobile = $this->faker->mobileNumber();
} while ('06' != substr($mobile, 0, 2));
} while (' ' == $mobile[2] || '06' != substr($mobile, 0, 2));
$this->assertRegExp('/^06(?:\d{2}){4}$/', $mobile);
}

Expand All @@ -43,7 +43,7 @@ public function testMobileNumber07()
{
do {
$mobile = $this->faker->mobileNumber();
} while ('07' != substr($mobile, 0, 2));
} while (' ' == $mobile[2] || '07' != substr($mobile, 0, 2));
$this->assertRegExp('/^07(?:3|4|5|6|7|8|9)\d(?:\d{2}){3}$/', $mobile);
}

Expand Down

0 comments on commit 4e75c77

Please sign in to comment.