Skip to content

Commit

Permalink
update(README.md)
Browse files Browse the repository at this point in the history
  • Loading branch information
holgerk committed Apr 7, 2024
1 parent 54e55cc commit 24c889c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@

[![run-tests](https://github.com/holgerk/pest-plugin-equal-golden/actions/workflows/tests.yml/badge.svg)](https://github.com/holgerk/pest-plugin-equal-golden/actions/workflows/tests.yml)

Provides a `toEqualGolden` expectation, which behaves identically to the `toEqual` expectation,
with the only difference being that if `null` is passed as the expectation, the expectation is
automatically created from the current value.
Provides a `toEqualGolden` assertion, same as `toEqual`, but when `null` is given as argument, the test file is
automatically edited and `null` is substituted with the actual value.

So, if you add:

```php
```php
expect(['color' => 'golden'])
->toEqualGolden(null);
```
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "holgerk/pest-plugin-equal-golden",
"description": "Provides a `toEqualGolden` expectation, which behaves identically to the `toEqual` expectation, with the only difference being that if `null` is passed as the expectation, the expectation is automatically created from the current value.",
"description": "Provides a toEqualGolden assertion, same as toEqual, but when null is given as argument, the test file is automatically edited and null is substituted with the actual value",
"keywords": [
"php",
"framework",
Expand Down

0 comments on commit 24c889c

Please sign in to comment.