Skip to content

Commit f77ec3f

Browse files
committed
docs: add about DebugHelper
1 parent 5318be6 commit f77ec3f

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,28 @@ $this->assertEquals(
339339
);
340340
~~~
341341

342+
### `DebugHelper`
343+
344+
This trait provides helper functions, `dd()` and `d()` to dump variables.
345+
346+
Import the `Kenjis\PhpUnitHelper\DebugHelper` trait into your test class:
347+
348+
```php
349+
<?php
350+
351+
declare(strict_types=1);
352+
353+
namespace Foo\Bar\Test\Unit;
354+
355+
use Kenjis\PhpUnitHelper\DebugHelper;
356+
use PHPUnit\Framework;
357+
358+
final class BazTest extends Framework\TestCase
359+
{
360+
use DebugHelper;
361+
}
362+
```
363+
342364
## License
343365

344366
This package is licensed using the MIT License.

0 commit comments

Comments
 (0)