File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ public static function fromResponse(Response $response): static
71
71
*/
72
72
public function toFile (): string
73
73
{
74
- return json_encode ($ this , JSON_THROW_ON_ERROR );
74
+ return json_encode ($ this , JSON_THROW_ON_ERROR | JSON_PRETTY_PRINT );
75
75
}
76
76
77
77
/**
Original file line number Diff line number Diff line change 53
53
],
54
54
];
55
55
56
- $ fixtureData = RecordedResponse::fromFile (json_encode ($ data ));
56
+ $ fixtureData = RecordedResponse::fromFile (json_encode ($ data, JSON_PRETTY_PRINT ));
57
57
58
- $ serialized = json_encode ($ fixtureData );
58
+ $ serialized = json_encode ($ fixtureData, JSON_PRETTY_PRINT );
59
59
60
- expect ($ serialized )->toEqual (json_encode ($ data ));
60
+ expect ($ serialized )->toEqual (json_encode ($ data, JSON_PRETTY_PRINT ));
61
61
expect ($ fixtureData ->toFile ())->toEqual ($ serialized );
62
62
});
You can’t perform that action at this time.
0 commit comments