Skip to content

Commit

Permalink
Merge pull request #430 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 Jan 3, 2022
2 parents a130f61 + 7ef50ba commit 17af90e
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 39 deletions.
5 changes: 0 additions & 5 deletions psalm-baseline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,4 @@
<code>\Generator</code>
</MixedInferredReturnType>
</file>
<file src="test/Util/DataProvider/Text.php">
<MixedInferredReturnType occurrences="1">
<code>\Generator</code>
</MixedInferredReturnType>
</file>
</files>
3 changes: 2 additions & 1 deletion test/Unit/FileTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ protected function tearDown(): void
}

/**
* @dataProvider \Ergebnis\License\Test\Util\DataProvider\Text::blankOrEmptyString()
* @dataProvider \Ergebnis\DataProvider\StringProvider::blank()
* @dataProvider \Ergebnis\DataProvider\StringProvider::empty()
*/
public function testCreateRejectsBlankOrEmptyName(string $name): void
{
Expand Down
3 changes: 2 additions & 1 deletion test/Unit/HolderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ final class HolderTest extends Framework\TestCase
use Test\Util\Helper;

/**
* @dataProvider \Ergebnis\License\Test\Util\DataProvider\Text::blankOrEmptyString()
* @dataProvider \Ergebnis\DataProvider\StringProvider::blank()
* @dataProvider \Ergebnis\DataProvider\StringProvider::empty()
*/
public function testFromStringRejectsBlankOrEmptyValue(string $value): void
{
Expand Down
3 changes: 2 additions & 1 deletion test/Unit/TemplateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ public function testFromStringReturnsTemplate(): void
}

/**
* @dataProvider \Ergebnis\License\Test\Util\DataProvider\Text::blankOrEmptyString()
* @dataProvider \Ergebnis\DataProvider\StringProvider::blank()
* @dataProvider \Ergebnis\DataProvider\StringProvider::empty()
*/
public function testFromFileRejectsBlankOrEmptyFileName(string $name): void
{
Expand Down
31 changes: 0 additions & 31 deletions test/Util/DataProvider/Text.php

This file was deleted.

0 comments on commit 17af90e

Please sign in to comment.