Skip to content

Commit

Permalink
Merge pull request #104 from ergebnis/feature/data-provider
Browse files Browse the repository at this point in the history
Enhancement: Use data providers provided by `ergebnis/data-provider`
  • Loading branch information
localheinz authored Nov 28, 2021
2 parents 7187e55 + 6a4f678 commit 59a2371
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions test/Unit/Console/ColorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ final class ColorTest extends Framework\TestCase
use Test\Util\Helper;

/**
* @dataProvider \Ergebnis\Test\Util\DataProvider\StringProvider::blank()
* @dataProvider \Ergebnis\Test\Util\DataProvider\StringProvider::empty()
* @dataProvider \Ergebnis\DataProvider\StringProvider::blank()
* @dataProvider \Ergebnis\DataProvider\StringProvider::empty()
*/
public function testDimReturnsOriginalStringWhenItIsWhitespaceOnly(string $output): void
{
Expand Down
6 changes: 3 additions & 3 deletions test/Unit/MaximumCountTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
final class MaximumCountTest extends Framework\TestCase
{
/**
* @dataProvider \Ergebnis\Test\Util\DataProvider\IntProvider::lessThanZero()
* @dataProvider \Ergebnis\Test\Util\DataProvider\IntProvider::zero()
* @dataProvider \Ergebnis\DataProvider\IntProvider::lessThanZero()
* @dataProvider \Ergebnis\DataProvider\IntProvider::zero()
*/
public function testFromIntRejectsInvalidValue(int $value): void
{
Expand All @@ -38,7 +38,7 @@ public function testFromIntRejectsInvalidValue(int $value): void
}

/**
* @dataProvider \Ergebnis\Test\Util\DataProvider\IntProvider::greaterThanZero()
* @dataProvider \Ergebnis\DataProvider\IntProvider::greaterThanZero()
*/
public function testFromSecondsReturnsMaximumDuration(int $value): void
{
Expand Down
10 changes: 5 additions & 5 deletions test/Unit/MaximumDurationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ final class MaximumDurationTest extends Framework\TestCase
use Test\Util\Helper;

/**
* @dataProvider \Ergebnis\Test\Util\DataProvider\IntProvider::lessThanZero()
* @dataProvider \Ergebnis\Test\Util\DataProvider\IntProvider::zero()
* @dataProvider \Ergebnis\DataProvider\IntProvider::lessThanZero()
* @dataProvider \Ergebnis\DataProvider\IntProvider::zero()
*/
public function testFromMillisecondsRejectsInvalidValue(int $milliseconds): void
{
Expand Down Expand Up @@ -72,8 +72,8 @@ public function provideMillisecondsAndTelemetryDuration(): \Generator
}

/**
* @dataProvider \Ergebnis\Test\Util\DataProvider\IntProvider::lessThanZero()
* @dataProvider \Ergebnis\Test\Util\DataProvider\IntProvider::zero()
* @dataProvider \Ergebnis\DataProvider\IntProvider::lessThanZero()
* @dataProvider \Ergebnis\DataProvider\IntProvider::zero()
*/
public function testFromSecondsRejectsInvalidValue(int $seconds): void
{
Expand All @@ -83,7 +83,7 @@ public function testFromSecondsRejectsInvalidValue(int $seconds): void
}

/**
* @dataProvider \Ergebnis\Test\Util\DataProvider\IntProvider::greaterThanZero()
* @dataProvider \Ergebnis\DataProvider\IntProvider::greaterThanZero()
*/
public function testFromSecondsReturnsMaximumDuration(int $seconds): void
{
Expand Down

0 comments on commit 59a2371

Please sign in to comment.