12345678910111213141516171819202122232425262728 |
- <?php
- namespace Faker\Test\Provider\ja_JP;
- use Faker\Generator;
- use Faker\Provider\ja_JP\Internet;
- class InternetTest extends \PHPUnit_Framework_TestCase
- {
- public function testUserName()
- {
- $faker = new Generator();
- $faker->addProvider(new Internet($faker));
- $faker->seed(1);
- $this->assertEquals('akira72', $faker->userName);
- }
- public function testDomainName()
- {
- $faker = new Generator();
- $faker->addProvider(new Internet($faker));
- $faker->seed(1);
- $this->assertEquals('nakajima.com', $faker->domainName);
- }
- }
|