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:
parent
c2b06f9741
commit
fff49bb3ed
File diff suppressed because one or more lines are too long
48
test/Faker/Provider/nl_NL/PersonTest.php
Normal file
48
test/Faker/Provider/nl_NL/PersonTest.php
Normal 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());
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user