mirror of
https://github.com/pestphp/pest.git
synced 2026-03-11 10:17:23 +01:00
fix tests
This commit is contained in:
@ -36,7 +36,7 @@ test('pass with `__toString`', function () {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
expect($object)->toMatchSnapshot()->toMatchSnapshot();
|
expect($object)->toMatchSnapshot();
|
||||||
});
|
});
|
||||||
|
|
||||||
test('pass with `toString`', function () {
|
test('pass with `toString`', function () {
|
||||||
@ -54,7 +54,7 @@ test('pass with `toString`', function () {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
expect($object)->toMatchSnapshot()->toMatchSnapshot();
|
expect($object)->toMatchSnapshot();
|
||||||
});
|
});
|
||||||
|
|
||||||
test('pass with dataset', function ($data) {
|
test('pass with dataset', function ($data) {
|
||||||
@ -92,7 +92,7 @@ test('pass with `toArray`', function () {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
expect($object)->toMatchSnapshot()->toMatchSnapshot();
|
expect($object)->toMatchSnapshot();
|
||||||
});
|
});
|
||||||
|
|
||||||
test('pass with array', function () {
|
test('pass with array', function () {
|
||||||
@ -100,7 +100,7 @@ test('pass with array', function () {
|
|||||||
|
|
||||||
expect([
|
expect([
|
||||||
'key' => $this->snapshotable,
|
'key' => $this->snapshotable,
|
||||||
])->toMatchSnapshot()->toMatchSnapshot();
|
])->toMatchSnapshot();
|
||||||
});
|
});
|
||||||
|
|
||||||
test('failures', function () {
|
test('failures', function () {
|
||||||
|
|||||||
Reference in New Issue
Block a user