multiple snapshots

This commit is contained in:
Fabio Ivona
2023-07-27 11:46:22 +02:00
parent b60d21dfe2
commit 1efb9de043
17 changed files with 74 additions and 2 deletions

View File

@ -120,3 +120,15 @@ test('not failures', function () {
expect($this->snapshotable)->not->toMatchSnapshot();
})->throws(ExpectationFailedException::class);
test('multiple snapshot expectations', function () {
expect("foo bar 1")->toMatchSnapshot();
expect("foo bar 2")->toMatchSnapshot();
});
test('multiple snapshot expectations with datasets', function () {
expect("foo bar 1")->toMatchSnapshot();
expect("foo bar 2")->toMatchSnapshot();
})->with([1, 'foo', 'bar', 'baz']);