菜谱项目

TextTest.php 474B

123456789101112131415161718192021222324252627
  1. <?php
  2. namespace Faker\Test\Provider\es_ES;
  3. use Faker\Generator;
  4. use Faker\Provider\es_ES\Text;
  5. class TextTest extends \PHPUnit_Framework_TestCase
  6. {
  7. /**
  8. * @var Generator
  9. */
  10. private $faker;
  11. public function setUp()
  12. {
  13. $faker = new Generator();
  14. $faker->addProvider(new Text($faker));
  15. $this->faker = $faker;
  16. }
  17. public function testText()
  18. {
  19. $this->assertNotSame('', $this->faker->realtext(200, 2));
  20. }
  21. }