Skip to content

Commit 48214a3

Browse files
Merge branch '8.5' into 9.5
2 parents c02306c + 6987110 commit 48214a3

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/annotations.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -684,6 +684,7 @@ The ``@testdox`` annotation can be applied to both test classes and test methods
684684
of the ``@test`` annotation.
685685

686686
When using the ``@testdox`` annotation at method level with a ``@dataProvider`` you may use the method parameters as placeholders in your alternative description.
687+
``$_dataName`` is available in addition to use the actual name of the current data. That would be ``data set 1`` up to 4 in below example.
687688

688689
.. code-block:: php
689690
@@ -699,10 +700,10 @@ When using the ``@testdox`` annotation at method level with a ``@dataProvider``
699700
public function additionProvider()
700701
{
701702
return [
702-
[0, 0, 0],
703-
[0, 1, 1],
704-
[1, 0, 1],
705-
[1, 1, 3]
703+
'data set 1' => [0, 0, 0],
704+
'data set 2' => [0, 1, 1],
705+
'data set 3' => [1, 0, 1],
706+
'data set 4' => [1, 1, 3]
706707
];
707708
}
708709

0 commit comments

Comments
 (0)