mirror of
https://github.com/pestphp/pest.git
synced 2026-07-24 10:30:03 +02:00
fix: package lock fingerprint
This commit is contained in:
@@ -3,16 +3,16 @@
|
||||
$foo = new stdClass;
|
||||
$foo->bar = 0;
|
||||
|
||||
beforeAll(function () use ($foo) {
|
||||
beforeAll(function () use ($foo): void {
|
||||
$foo->bar++;
|
||||
});
|
||||
|
||||
it('gets executed before tests', function () use ($foo) {
|
||||
it('gets executed before tests', function () use ($foo): void {
|
||||
expect($foo)->bar->toBe(1);
|
||||
|
||||
$foo->bar = 'changed';
|
||||
});
|
||||
|
||||
it('do not get executed before each test', function () use ($foo) {
|
||||
it('do not get executed before each test', function () use ($foo): void {
|
||||
expect($foo)->bar->toBe('changed');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user