Skip to content

Commit 5caba68

Browse files
Readme
1 parent a13a5ba commit 5caba68

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
```php
1313
use Spatie\Snapshots\MatchesSnapshots;
1414

15-
class OrderSerializerTest
15+
class OrderTest
1616
{
1717
use MatchesSnapshot;
1818

19-
class test_it_serializes_an_order_json()
19+
class test_it_casts_to_json()
2020
{
2121
$orderId = new Order(1);
2222

@@ -32,8 +32,8 @@ On the first run, the test runner will create a new snapshot.
3232
3333
There was 1 incomplete test:
3434
35-
1) OrderSerializerTest::test_it_serializes_an_order_json
36-
Snapshot created for OrderSerializerTest__test_it_serializes_an_order_json__1
35+
1) OrderTest::test_it_casts_to_json
36+
Snapshot created for OrderTest__test_it_casts_to_json__1
3737
3838
OK, but incomplete, skipped, or risky tests!
3939
Tests: 1, Assertions: 0, Incomplete: 1.
@@ -55,7 +55,7 @@ $orderId = new Order(2); // Regression! Was `1`
5555
```
5656
> ./vendor/bin/phpunit
5757
58-
1) OrderSerializerTest::test_it_serializes_an_order_json
58+
1) OrderTest::test_it_casts_to_json
5959
Failed asserting that two strings are equal.
6060
--- Expected
6161
+++ Actual

0 commit comments

Comments
 (0)