diff --git a/CHANGELOG.md b/CHANGELOG.md
index 99c1fe9..6d13ad1 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
## Unreleased
+### Changed
+
+- Deprecated all data providers ([#526]), by [@localheinz]
+
For a full diff see [`1.5.0...main`][1.5.0...main].
## [`1.5.0`][1.5.0]
@@ -183,6 +187,7 @@ For a full diff see [`0.7.0...0.8.0`][0.7.0...0.8.0].
[#374]: https://github.com/ergebnis/test-util/pull/374
[#434]: https://github.com/ergebnis/test-util/pull/434
[#435]: https://github.com/ergebnis/test-util/pull/435
+[#526]: https://github.com/ergebnis/test-util/pull/526
[@dependabot]: https://github.com/dependabot
[@ergebnis]: https://github.com/ergebnis
diff --git a/README.md b/README.md
index 8435b9a..4967f49 100644
--- a/README.md
+++ b/README.md
@@ -99,6 +99,8 @@ In addition to the assertions made available by extending from `PHPUnit\Framewor
### Data Providers
+:exclamation: The data providers have been deprecated. Use [`ergebnis/data-provider`](https://github.com/ergebnis/data-provider) instead.
+
This package provides the following generic data providers:
* [`Ergebnis\Test\Util\DataProvider\BoolProvider`](https://github.com/ergebnis/test-util#dataproviderboolprovider)
diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon
index 9097a85..bcbdc3b 100644
--- a/phpstan-baseline.neon
+++ b/phpstan-baseline.neon
@@ -965,6 +965,240 @@ parameters:
count: 1
path: test/Unit/DataProvider/AbstractProviderTestCase.php
+ -
+ message:
+ """
+ #^Call to method arbitrary\\(\\) of deprecated class Ergebnis\\\\Test\\\\Util\\\\DataProvider\\\\BoolProvider\\:
+ use ergebnis/data\\-provider instead$#
+ """
+ count: 1
+ path: test/Unit/DataProvider/BoolProviderTest.php
+
+ -
+ message:
+ """
+ #^Call to method false\\(\\) of deprecated class Ergebnis\\\\Test\\\\Util\\\\DataProvider\\\\BoolProvider\\:
+ use ergebnis/data\\-provider instead$#
+ """
+ count: 1
+ path: test/Unit/DataProvider/BoolProviderTest.php
+
+ -
+ message:
+ """
+ #^Call to method true\\(\\) of deprecated class Ergebnis\\\\Test\\\\Util\\\\DataProvider\\\\BoolProvider\\:
+ use ergebnis/data\\-provider instead$#
+ """
+ count: 1
+ path: test/Unit/DataProvider/BoolProviderTest.php
+
+ -
+ message:
+ """
+ #^Call to method arbitrary\\(\\) of deprecated class Ergebnis\\\\Test\\\\Util\\\\DataProvider\\\\FloatProvider\\:
+ use ergebnis/data\\-provider instead$#
+ """
+ count: 1
+ path: test/Unit/DataProvider/FloatProviderTest.php
+
+ -
+ message:
+ """
+ #^Call to method greaterThanOne\\(\\) of deprecated class Ergebnis\\\\Test\\\\Util\\\\DataProvider\\\\FloatProvider\\:
+ use ergebnis/data\\-provider instead$#
+ """
+ count: 1
+ path: test/Unit/DataProvider/FloatProviderTest.php
+
+ -
+ message:
+ """
+ #^Call to method greaterThanZero\\(\\) of deprecated class Ergebnis\\\\Test\\\\Util\\\\DataProvider\\\\FloatProvider\\:
+ use ergebnis/data\\-provider instead$#
+ """
+ count: 1
+ path: test/Unit/DataProvider/FloatProviderTest.php
+
+ -
+ message:
+ """
+ #^Call to method lessThanOne\\(\\) of deprecated class Ergebnis\\\\Test\\\\Util\\\\DataProvider\\\\FloatProvider\\:
+ use ergebnis/data\\-provider instead$#
+ """
+ count: 1
+ path: test/Unit/DataProvider/FloatProviderTest.php
+
+ -
+ message:
+ """
+ #^Call to method lessThanZero\\(\\) of deprecated class Ergebnis\\\\Test\\\\Util\\\\DataProvider\\\\FloatProvider\\:
+ use ergebnis/data\\-provider instead$#
+ """
+ count: 1
+ path: test/Unit/DataProvider/FloatProviderTest.php
+
+ -
+ message:
+ """
+ #^Call to method one\\(\\) of deprecated class Ergebnis\\\\Test\\\\Util\\\\DataProvider\\\\FloatProvider\\:
+ use ergebnis/data\\-provider instead$#
+ """
+ count: 1
+ path: test/Unit/DataProvider/FloatProviderTest.php
+
+ -
+ message:
+ """
+ #^Call to method zero\\(\\) of deprecated class Ergebnis\\\\Test\\\\Util\\\\DataProvider\\\\FloatProvider\\:
+ use ergebnis/data\\-provider instead$#
+ """
+ count: 1
+ path: test/Unit/DataProvider/FloatProviderTest.php
+
+ -
+ message:
+ """
+ #^Call to method arbitrary\\(\\) of deprecated class Ergebnis\\\\Test\\\\Util\\\\DataProvider\\\\IntProvider\\:
+ use ergebnis/data\\-provider instead$#
+ """
+ count: 1
+ path: test/Unit/DataProvider/IntProviderTest.php
+
+ -
+ message:
+ """
+ #^Call to method greaterThanOne\\(\\) of deprecated class Ergebnis\\\\Test\\\\Util\\\\DataProvider\\\\IntProvider\\:
+ use ergebnis/data\\-provider instead$#
+ """
+ count: 1
+ path: test/Unit/DataProvider/IntProviderTest.php
+
+ -
+ message:
+ """
+ #^Call to method greaterThanZero\\(\\) of deprecated class Ergebnis\\\\Test\\\\Util\\\\DataProvider\\\\IntProvider\\:
+ use ergebnis/data\\-provider instead$#
+ """
+ count: 1
+ path: test/Unit/DataProvider/IntProviderTest.php
+
+ -
+ message:
+ """
+ #^Call to method lessThanOne\\(\\) of deprecated class Ergebnis\\\\Test\\\\Util\\\\DataProvider\\\\IntProvider\\:
+ use ergebnis/data\\-provider instead$#
+ """
+ count: 1
+ path: test/Unit/DataProvider/IntProviderTest.php
+
+ -
+ message:
+ """
+ #^Call to method lessThanZero\\(\\) of deprecated class Ergebnis\\\\Test\\\\Util\\\\DataProvider\\\\IntProvider\\:
+ use ergebnis/data\\-provider instead$#
+ """
+ count: 1
+ path: test/Unit/DataProvider/IntProviderTest.php
+
+ -
+ message:
+ """
+ #^Call to method one\\(\\) of deprecated class Ergebnis\\\\Test\\\\Util\\\\DataProvider\\\\IntProvider\\:
+ use ergebnis/data\\-provider instead$#
+ """
+ count: 1
+ path: test/Unit/DataProvider/IntProviderTest.php
+
+ -
+ message:
+ """
+ #^Call to method zero\\(\\) of deprecated class Ergebnis\\\\Test\\\\Util\\\\DataProvider\\\\IntProvider\\:
+ use ergebnis/data\\-provider instead$#
+ """
+ count: 1
+ path: test/Unit/DataProvider/IntProviderTest.php
+
+ -
+ message:
+ """
+ #^Call to method null\\(\\) of deprecated class Ergebnis\\\\Test\\\\Util\\\\DataProvider\\\\NullProvider\\:
+ use ergebnis/data\\-provider instead$#
+ """
+ count: 1
+ path: test/Unit/DataProvider/NullProviderTest.php
+
+ -
+ message:
+ """
+ #^Call to method object\\(\\) of deprecated class Ergebnis\\\\Test\\\\Util\\\\DataProvider\\\\ObjectProvider\\:
+ use ergebnis/data\\-provider instead$#
+ """
+ count: 1
+ path: test/Unit/DataProvider/ObjectProviderTest.php
+
+ -
+ message:
+ """
+ #^Call to method resource\\(\\) of deprecated class Ergebnis\\\\Test\\\\Util\\\\DataProvider\\\\ResourceProvider\\:
+ use ergebnis/data\\-provider instead$#
+ """
+ count: 1
+ path: test/Unit/DataProvider/ResourceProviderTest.php
+
+ -
+ message:
+ """
+ #^Call to method arbitrary\\(\\) of deprecated class Ergebnis\\\\Test\\\\Util\\\\DataProvider\\\\StringProvider\\:
+ use ergebnis/data\\-provider instead$#
+ """
+ count: 1
+ path: test/Unit/DataProvider/StringProviderTest.php
+
+ -
+ message:
+ """
+ #^Call to method blank\\(\\) of deprecated class Ergebnis\\\\Test\\\\Util\\\\DataProvider\\\\StringProvider\\:
+ use ergebnis/data\\-provider instead$#
+ """
+ count: 1
+ path: test/Unit/DataProvider/StringProviderTest.php
+
+ -
+ message:
+ """
+ #^Call to method empty\\(\\) of deprecated class Ergebnis\\\\Test\\\\Util\\\\DataProvider\\\\StringProvider\\:
+ use ergebnis/data\\-provider instead$#
+ """
+ count: 1
+ path: test/Unit/DataProvider/StringProviderTest.php
+
+ -
+ message:
+ """
+ #^Call to method trimmed\\(\\) of deprecated class Ergebnis\\\\Test\\\\Util\\\\DataProvider\\\\StringProvider\\:
+ use ergebnis/data\\-provider instead$#
+ """
+ count: 1
+ path: test/Unit/DataProvider/StringProviderTest.php
+
+ -
+ message:
+ """
+ #^Call to method untrimmed\\(\\) of deprecated class Ergebnis\\\\Test\\\\Util\\\\DataProvider\\\\StringProvider\\:
+ use ergebnis/data\\-provider instead$#
+ """
+ count: 1
+ path: test/Unit/DataProvider/StringProviderTest.php
+
+ -
+ message:
+ """
+ #^Call to method withWhitespace\\(\\) of deprecated class Ergebnis\\\\Test\\\\Util\\\\DataProvider\\\\StringProvider\\:
+ use ergebnis/data\\-provider instead$#
+ """
+ count: 1
+ path: test/Unit/DataProvider/StringProviderTest.php
+
-
message: "#^Method Ergebnis\\\\Test\\\\Util\\\\Test\\\\Unit\\\\Exception\\\\EmptyValuesTest\\:\\:assertClassExists\\(\\) is protected, but since the containing class is final, it can be private\\.$#"
count: 1
diff --git a/psalm-baseline.xml b/psalm-baseline.xml
index 3b0918a..6d67ca2 100644
--- a/psalm-baseline.xml
+++ b/psalm-baseline.xml
@@ -87,11 +87,63 @@
Util\Test\Util\DataProvider\Specification\Specification
+
+
+ BoolProvider::arbitrary()
+ BoolProvider::false()
+ BoolProvider::true()
+
+
+
+
+ FloatProvider::arbitrary()
+ FloatProvider::greaterThanOne()
+ FloatProvider::greaterThanZero()
+ FloatProvider::lessThanOne()
+ FloatProvider::lessThanZero()
+ FloatProvider::one()
+ FloatProvider::zero()
+
+
+
+
+ IntProvider::arbitrary()
+ IntProvider::greaterThanOne()
+ IntProvider::greaterThanZero()
+ IntProvider::lessThanOne()
+ IntProvider::lessThanZero()
+ IntProvider::one()
+ IntProvider::zero()
+
+
+
+
+ NullProvider::null()
+
+
+
+
+ ObjectProvider::object()
+
+
+
+ ResourceProvider::resource()
+
$value
+
+
+ StringProvider::arbitrary()
+ StringProvider::blank()
+ StringProvider::empty()
+ StringProvider::trimmed()
+ StringProvider::untrimmed()
+ StringProvider::withWhitespace()
+
+
\Generator<array<null|array|bool|float|int|resource|\stdClass>>
diff --git a/src/DataProvider/BoolProvider.php b/src/DataProvider/BoolProvider.php
index d9a4ece..5d01e64 100644
--- a/src/DataProvider/BoolProvider.php
+++ b/src/DataProvider/BoolProvider.php
@@ -15,6 +15,10 @@
use Ergebnis\Test\Util;
+/**
+ * @deprecated use ergebnis/data-provider instead
+ * @see https://github.com/ergebnis/data-provider
+ */
final class BoolProvider
{
use Util\Helper;
diff --git a/src/DataProvider/FloatProvider.php b/src/DataProvider/FloatProvider.php
index 588c8a7..97d13f5 100644
--- a/src/DataProvider/FloatProvider.php
+++ b/src/DataProvider/FloatProvider.php
@@ -15,6 +15,10 @@
use Ergebnis\Test\Util;
+/**
+ * @deprecated use ergebnis/data-provider instead
+ * @see https://github.com/ergebnis/data-provider
+ */
final class FloatProvider
{
use Util\Helper;
diff --git a/src/DataProvider/IntProvider.php b/src/DataProvider/IntProvider.php
index dc05e9b..6289e30 100644
--- a/src/DataProvider/IntProvider.php
+++ b/src/DataProvider/IntProvider.php
@@ -15,6 +15,10 @@
use Ergebnis\Test\Util;
+/**
+ * @deprecated use ergebnis/data-provider instead
+ * @see https://github.com/ergebnis/data-provider
+ */
final class IntProvider
{
use Util\Helper;
diff --git a/src/DataProvider/NullProvider.php b/src/DataProvider/NullProvider.php
index b99791a..2db7497 100644
--- a/src/DataProvider/NullProvider.php
+++ b/src/DataProvider/NullProvider.php
@@ -15,6 +15,10 @@
use Ergebnis\Test\Util;
+/**
+ * @deprecated use ergebnis/data-provider instead
+ * @see https://github.com/ergebnis/data-provider
+ */
final class NullProvider
{
use Util\Helper;
diff --git a/src/DataProvider/ObjectProvider.php b/src/DataProvider/ObjectProvider.php
index e3cdd01..fa32c68 100644
--- a/src/DataProvider/ObjectProvider.php
+++ b/src/DataProvider/ObjectProvider.php
@@ -15,6 +15,10 @@
use Ergebnis\Test\Util;
+/**
+ * @deprecated use ergebnis/data-provider instead
+ * @see https://github.com/ergebnis/data-provider
+ */
final class ObjectProvider
{
use Util\Helper;
diff --git a/src/DataProvider/ResourceProvider.php b/src/DataProvider/ResourceProvider.php
index 95a2596..8ca50b9 100644
--- a/src/DataProvider/ResourceProvider.php
+++ b/src/DataProvider/ResourceProvider.php
@@ -15,6 +15,10 @@
use Ergebnis\Test\Util;
+/**
+ * @deprecated use ergebnis/data-provider instead
+ * @see https://github.com/ergebnis/data-provider
+ */
final class ResourceProvider
{
use Util\Helper;
diff --git a/src/DataProvider/StringProvider.php b/src/DataProvider/StringProvider.php
index c59fd1a..bdefdd5 100644
--- a/src/DataProvider/StringProvider.php
+++ b/src/DataProvider/StringProvider.php
@@ -15,6 +15,10 @@
use Ergebnis\Test\Util;
+/**
+ * @deprecated use ergebnis/data-provider instead
+ * @see https://github.com/ergebnis/data-provider
+ */
final class StringProvider
{
use Util\Helper;