菜谱项目

PersonTest.php 664B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. namespace Faker\Test\Provider\bn_BD;
  3. use Faker\Generator;
  4. use Faker\Provider\bn_BD\Person;
  5. class PersonTest extends \PHPUnit_Framework_TestCase
  6. {
  7. public function setUp()
  8. {
  9. $faker = new Generator();
  10. $faker->addProvider(new Person($faker));
  11. $this->faker = $faker;
  12. }
  13. public function testIfFirstNameMaleCanReturnData()
  14. {
  15. $firstNameMale = $this->faker->firstNameMale();
  16. $this->assertNotEmpty($firstNameMale);
  17. }
  18. public function testIfFirstNameFemaleCanReturnData()
  19. {
  20. $firstNameFemale = $this->faker->firstNameFemale();
  21. $this->assertNotEmpty($firstNameFemale);
  22. }
  23. }
  24. ?>