mirror of
https://github.com/pestphp/pest.git
synced 2026-07-26 03:20:03 +02:00
fix: package lock fingerprint
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
<?php
|
||||
|
||||
beforeEach(function () {
|
||||
beforeEach(function (): void {
|
||||
$this->ith = 0;
|
||||
});
|
||||
|
||||
pest()->afterEach(function () {
|
||||
pest()->afterEach(function (): void {
|
||||
expect($this)
|
||||
->toHaveProperty('ith')
|
||||
->and($this->ith)
|
||||
@@ -13,7 +13,7 @@ pest()->afterEach(function () {
|
||||
$this->ith++;
|
||||
});
|
||||
|
||||
pest()->afterEach(function () {
|
||||
pest()->afterEach(function (): void {
|
||||
expect($this)
|
||||
->toHaveProperty('ith')
|
||||
->and($this->ith)
|
||||
@@ -22,7 +22,7 @@ pest()->afterEach(function () {
|
||||
$this->ith++;
|
||||
});
|
||||
|
||||
afterEach(function () {
|
||||
afterEach(function (): void {
|
||||
expect($this)
|
||||
->toHaveProperty('ith')
|
||||
->and($this->ith)
|
||||
@@ -31,8 +31,8 @@ afterEach(function () {
|
||||
$this->ith++;
|
||||
});
|
||||
|
||||
describe('nested', function () {
|
||||
afterEach(function () {
|
||||
describe('nested', function (): void {
|
||||
afterEach(function (): void {
|
||||
expect($this)
|
||||
->toHaveProperty('ith')
|
||||
->and($this->ith)
|
||||
@@ -41,7 +41,7 @@ describe('nested', function () {
|
||||
$this->ith++;
|
||||
});
|
||||
|
||||
test('nested afterEach execution order', function () {
|
||||
test('nested afterEach execution order', function (): void {
|
||||
expect($this)
|
||||
->toHaveProperty('ith')
|
||||
->and($this->ith)
|
||||
@@ -50,7 +50,7 @@ describe('nested', function () {
|
||||
$this->ith++;
|
||||
});
|
||||
|
||||
afterEach(function () {
|
||||
afterEach(function (): void {
|
||||
expect($this)
|
||||
->toHaveProperty('ith')
|
||||
->and($this->ith)
|
||||
@@ -60,7 +60,7 @@ describe('nested', function () {
|
||||
});
|
||||
});
|
||||
|
||||
afterEach(function () {
|
||||
afterEach(function (): void {
|
||||
expect($this)
|
||||
->toHaveProperty('ith')
|
||||
->and($this->ith)
|
||||
@@ -69,7 +69,7 @@ afterEach(function () {
|
||||
$this->ith++;
|
||||
});
|
||||
|
||||
test('global afterEach execution order', function () {
|
||||
test('global afterEach execution order', function (): void {
|
||||
expect($this)
|
||||
->toHaveProperty('ith')
|
||||
->and($this->ith)
|
||||
|
||||
@@ -1,16 +1,18 @@
|
||||
<?php
|
||||
|
||||
pest()->beforeAll(function () {
|
||||
declare(strict_types=1);
|
||||
|
||||
pest()->beforeAll(function (): void {
|
||||
expect($_SERVER['globalHook']->calls->beforeAll)
|
||||
->toBe(0);
|
||||
|
||||
$_SERVER['globalHook']->calls->beforeAll++;
|
||||
});
|
||||
|
||||
it('gets called before all tests 1', function () {
|
||||
it('gets called before all tests 1', function (): void {
|
||||
expect($_SERVER['globalHook']->calls->beforeAll)->toBe(1);
|
||||
})->repeat(2);
|
||||
|
||||
it('gets called before all tests 2', function () {
|
||||
it('gets called before all tests 2', function (): void {
|
||||
expect($_SERVER['globalHook']->calls->beforeAll)->toBe(1);
|
||||
});
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
pest()->beforeEach(function () {
|
||||
pest()->beforeEach(function (): void {
|
||||
expect($this)
|
||||
->toHaveProperty('baz')
|
||||
->and($this->baz)
|
||||
@@ -9,7 +9,7 @@ pest()->beforeEach(function () {
|
||||
$this->baz = 2;
|
||||
});
|
||||
|
||||
beforeEach(function () {
|
||||
beforeEach(function (): void {
|
||||
expect($this)
|
||||
->toHaveProperty('baz')
|
||||
->and($this->baz)
|
||||
@@ -18,7 +18,7 @@ beforeEach(function () {
|
||||
$this->baz = 3;
|
||||
});
|
||||
|
||||
test('global beforeEach execution order', function () {
|
||||
test('global beforeEach execution order', function (): void {
|
||||
expect($this)
|
||||
->toHaveProperty('baz')
|
||||
->and($this->baz)
|
||||
|
||||
Reference in New Issue
Block a user