1
0
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:
Francois Zaninotto 2013-06-09 10:19:15 -07:00
commit 7b0f8cf831
2 changed files with 318 additions and 69 deletions

File diff suppressed because one or more lines are too long

View 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());
}
}
}