Skip to content

Commit 61372db

Browse files
Merge branch '11.5' into 12.3
2 parents 461b020 + 6cef210 commit 61372db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/writing-tests-for-phpunit.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ more data provider methods (``additionProvider()`` in the example shown below).
102102
provider method to be used is specified using the ``PHPUnit\Framework\Attributes\DataProvider``
103103
or the ``PHPUnit\Framework\Attributes\DataProviderExternal`` attribute.
104104

105-
A data provider method must be ``public`` and ``static``.
105+
A data provider method must be ``public`` and ``static`` and its name must not start with ``test``.
106106
It must return a value that is `iterable <https://www.php.net/manual/en/language.types.iterable.php>`_,
107107
either an array or an object that implements the ``Traversable`` interface. In each iteration step,
108108
it must yield an array. For each of these arrays, the test method will be called with the contents

0 commit comments

Comments
 (0)