diff --git a/composer.json b/composer.json index 9cc6584..c96d8d0 100644 --- a/composer.json +++ b/composer.json @@ -13,7 +13,7 @@ "license": "MIT", "require": { "php": "^8.2", - "pestphp/pest": "^2.25", + "pestphp/pest": "^2.28", "pestphp/pest-plugin": "^2.1.1", "ext-curl": "*", "ext-zip": "*" diff --git a/tests/Unit/Factory.php b/tests/Unit/Factory.php index 993354e..d0814f4 100644 --- a/tests/Unit/Factory.php +++ b/tests/Unit/Factory.php @@ -2,71 +2,71 @@ declare(strict_types=1); -it('correctly use get method by default', function () { +it('correctly use get method by default', function (): void { expect($this->stress->method())->toBe('get'); }); -it('correctly sets the delete method', function () { +it('correctly sets the delete method', function (): void { $this->stress->delete(); expect($this->stress->method())->toBe('delete'); }); -it('correctly sets the get method', function () { +it('correctly sets the get method', function (): void { $this->stress->get(); expect($this->stress->method())->toBe('get'); }); -it('correctly sets the head method', function () { +it('correctly sets the head method', function (): void { $this->stress->head(); expect($this->stress->method())->toBe('head'); }); -it('correctly sets the options method without payload', function () { +it('correctly sets the options method without payload', function (): void { $this->stress->options(); expect($this->stress->method())->toBe('options') ->and($this->stress->payload())->toBe([]); }); -it('correctly sets the options method with payload', function () { +it('correctly sets the options method with payload', function (): void { $this->stress->options(['foo' => 'bar']); expect($this->stress->method())->toBe('options') ->and($this->stress->payload())->toBe(['foo' => 'bar']); }); -it('correctly sets the patch method without payload', function () { +it('correctly sets the patch method without payload', function (): void { $this->stress->patch(); expect($this->stress->method())->toBe('patch') ->and($this->stress->payload())->toBe([]); }); -it('correctly sets the patch method with payload', function () { +it('correctly sets the patch method with payload', function (): void { $this->stress->patch(['foo' => 'bar']); expect($this->stress->method())->toBe('patch') ->and($this->stress->payload())->toBe(['foo' => 'bar']); }); -it('correctly sets the put method without payload', function () { +it('correctly sets the put method without payload', function (): void { $this->stress->put(); expect($this->stress->method())->toBe('put') ->and($this->stress->payload())->toBe([]); }); -it('correctly sets the put method with payload', function () { +it('correctly sets the put method with payload', function (): void { $this->stress->put(['foo' => 'bar']); expect($this->stress->method())->toBe('put') ->and($this->stress->payload())->toBe(['foo' => 'bar']); }); -it('correctly sets the post method', function () { +it('correctly sets the post method', function (): void { $this->stress->post(['foo' => 'bar']); expect($this->stress->method())->toBe('post')