Skip to content

Commit

Permalink
fix(php): only test on 1000 random domains
Browse files Browse the repository at this point in the history
  • Loading branch information
François-Guillaume Ribreau committed Nov 20, 2023
1 parent e65dcad commit 7347876
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/platform.php.test.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
// Windows:
// > composer install && .\vendor\bin\phpunit.bat test\platform.php.test.php

require_once __DIR__ . '/../platform/php/MailChecker.php';

use Fgribreau\MailChecker;
use PHPUnit\Framework\TestCase;

Expand Down Expand Up @@ -61,7 +63,7 @@ public function testReturnFalseIfThrowableDomain()

public static function provideBlackListTests()
{
foreach (MailChecker::blacklist() as $blacklistedDomain) {
foreach (array_rand(MailChecker::blacklist(), 1000) as $blacklistedDomain) {
yield [$blacklistedDomain];
}
}
Expand Down

0 comments on commit 7347876

Please sign in to comment.