1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
<?php
namespace Faker\Test\Provider\fr_FR;
use Faker\Provider\fr_FR\Color;
use Faker\Test\TestCase;
/**
* @group legacy
*/
final class ColorTest extends TestCase
{
public function testColorName()
{
self::assertEquals('Mandarine', $this->faker->colorName());
self::assertEquals('Acajou', $this->faker->colorName());
}
public function testSafeColorName()
{
self::assertEquals('bleu', $this->faker->safeColorName());
self::assertEquals('noir', $this->faker->safeColorName());
}
protected function getProviders(): iterable
{
yield new Color($this->faker);
}
}
|