Skip to content

Commit

Permalink
chore: bumps dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
nunomaduro committed Dec 6, 2023
1 parent 42934bc commit 7494c7d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "*"
Expand Down
22 changes: 11 additions & 11 deletions tests/Unit/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 7494c7d

Please sign in to comment.