forked from paratestphp/paratest
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix progress output with copious data provider (paratestphp#856)
- Loading branch information
1 parent
e7385d4
commit 300ccdc
Showing
4 changed files
with
51 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace ParaTest\Tests\fixtures\github\GH853; | ||
|
||
use PHPUnit\Framework\Attributes\DataProvider; | ||
use PHPUnit\Framework\TestCase; | ||
|
||
use function array_fill; | ||
|
||
/** @internal */ | ||
final class ThousandTest extends TestCase | ||
{ | ||
/** @return list<positive-int> */ | ||
public static function rangeOfNumbersProvider(): array | ||
{ | ||
return array_fill(1, 1000, [1]); | ||
} | ||
|
||
#[DataProvider('rangeOfNumbersProvider')] | ||
public function testRangeOfNumbers(int $integer): void | ||
{ | ||
$this->assertIsInt($integer); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<phpunit> | ||
<testsuites> | ||
<testsuite name="Github issue"> | ||
<file>ThousandTest.php</file> | ||
</testsuite> | ||
</testsuites> | ||
</phpunit> |