1
0
mirror of https://github.com/fzaninotto/Faker.git synced 2025-03-24 09:19:50 +01:00

Fixed the nl_NL Person provider.

This commit is contained in:
Mark van der Velden 2013-05-18 17:30:43 +02:00
parent c2b06f9741
commit fff49bb3ed
2 changed files with 320 additions and 69 deletions

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,48 @@
<?php
namespace Faker\Test\Provider\nl_NL;
/**
* @author Mark van der Velden <mark@dynom.nl>
*/
class PersonTest extends \PHPUnit_Framework_TestCase
{
/**
* Return the nl_NL provider
*
* @return \Faker\Provider\nl_NL\Person
*/
private function getProvider()
{
$faker = new \Faker\Generator();
return new \Faker\Provider\nl_NL\Person($faker);
}
public function testGeneratingFirstNames()
{
$provider = $this->getProvider();
for ($i=0; $i<50; $i++)
{
$this->assertInternalType('string', $provider->firstName());
}
}
public function testGeneratingLastNames()
{
$provider = $this->getProvider();
for ($i=0; $i<50; $i++)
{
$this->assertInternalType('string', $provider->lastName());
}
}
public function testGeneratingNames()
{
$provider = $this->getProvider();
for ($i=0; $i<50; $i++)
{
$this->assertInternalType('string', $provider->name());
}
}
}