Skip to content

Commit 801c239

Browse files
committed
Add description to ArrayAssertsTrait
1 parent c17bd77 commit 801c239

2 files changed

Lines changed: 17 additions & 2 deletions

File tree

‎src/ArrayAssertsTrait.php‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,21 @@
3131
use PhrozenByte\PHPUnitArrayAsserts\Constraint\SequentialArray;
3232
use Traversable;
3333

34+
/**
35+
* A set of array-related assertion methods.
36+
*
37+
* This trait implements an assertion method and constraint creation method per
38+
* implemented constraint, namely
39+
*
40+
* - the `assertAssociativeArray` and `associativeArray` methods for
41+
* {@class PhrozenByte\PHPUnitArrayAsserts\Constraint\AssociativeArray},
42+
* - the `assertArrayHasKeyWith` and `arrayHasKeyWith` methods for
43+
* {@class PhrozenByte\PHPUnitArrayAsserts\Constraint\ArrayHasKeyWith},
44+
* - the `assertSequentialArray` and `sequentialArray` methods for
45+
* {@class PhrozenByte\PHPUnitArrayAsserts\Constraint\SequentialArray}, and
46+
* - the `assertArrayHasItemWith` and `arrayHasItemWith` methods for
47+
* {@class PhrozenByte\PHPUnitArrayAsserts\Constraint\ArrayHasItemWith}.
48+
*/
3449
trait ArrayAssertsTrait
3550
{
3651
/**

‎src/Assert.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
/**
2323
* A set of array-related assertion methods.
2424
*
25-
* This static class just uses the {@class ArrayAssertsTrait} trait. Refer to
26-
* {@class ArrayAssertsTrait} for more info.
25+
* This static class just uses the `ArrayAssertsTrait` trait. Refer to
26+
* {@class PhrozenByte\PHPUnitArrayAsserts\ArrayAssertsTrait} for more info.
2727
*/
2828
class Assert
2929
{

0 commit comments

Comments
 (0)