mirror of
https://github.com/fzaninotto/Faker.git
synced 2025-03-20 23:39:51 +01:00
Merge pull request #135 from Dynom/fixingnlNLPerson
Fixed the nl_NL Person provider.
This commit is contained in:
commit
7b0f8cf831
File diff suppressed because one or more lines are too long
46
test/Faker/Provider/nl_NL/PersonTest.php
Normal file
46
test/Faker/Provider/nl_NL/PersonTest.php
Normal file
@ -0,0 +1,46 @@
|
||||
<?php
|
||||
|
||||
namespace Faker\Test\Provider\nl_NL;
|
||||
|
||||
/**
|
||||
* @author Mark van der Velden <mark@dynom.nl>
|
||||
*/
|
||||
class PersonTest extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
/**
|
||||
* @var \Faker\Generator
|
||||
*/
|
||||
private $faker;
|
||||
|
||||
public function setUp()
|
||||
{
|
||||
$faker = new \Faker\Generator();
|
||||
$faker->addProvider(new \Faker\Provider\nl_NL\Person($faker));
|
||||
|
||||
$this->faker = $faker;
|
||||
}
|
||||
|
||||
public function testGeneratingFirstNames()
|
||||
{
|
||||
for ($i=0; $i<50; $i++)
|
||||
{
|
||||
$this->assertInternalType('string', $this->faker->firstName());
|
||||
}
|
||||
}
|
||||
|
||||
public function testGeneratingLastNames()
|
||||
{
|
||||
for ($i=0; $i<50; $i++)
|
||||
{
|
||||
$this->assertInternalType('string', $this->faker->lastName());
|
||||
}
|
||||
}
|
||||
|
||||
public function testGeneratingNames()
|
||||
{
|
||||
for ($i=0; $i<50; $i++)
|
||||
{
|
||||
$this->assertInternalType('string', $this->faker->name());
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user