fix(tests): Replace Faker library

Signed-off-by: Rubén D <nuxsmin@syspass.org>
This commit is contained in:
Rubén D
2023-11-01 18:38:58 +01:00
parent 4610d94ff7
commit 8ab5f32c08
3 changed files with 476 additions and 379 deletions

View File

@@ -61,7 +61,7 @@
"roave/security-advisories": "dev-latest",
"symfony/debug": "^v3.4",
"phpunit/phpunit": "^10",
"fzaninotto/faker": "1.9.x-dev",
"fakerphp/faker": "^v1.23",
"fabpot/goutte": "^v3.2",
"nikic/php-parser": "^v4.1",
"squizlabs/php_codesniffer": "^3",

851
composer.lock generated

File diff suppressed because it is too large Load Diff

View File

@@ -41,7 +41,7 @@ class AddressTest extends UnitaryTestCase
{
$faker = Factory::create();
return array_map(fn() => [[$faker->ipv4], [$faker->ipv6]], range(0, 99));
return array_map(fn() => [$faker->ipv4], [$faker->ipv6], range(0, 99));
}
public static function checkAddressProvider(): array