diff --git a/.gitignore b/.gitignore index e548084..e9a43da 100644 --- a/.gitignore +++ b/.gitignore @@ -12,3 +12,4 @@ coverage.xml .temp/coverage.php *.swp *.swo +.phpunit.cache diff --git a/composer.json b/composer.json index c96d8d0..f35d3e1 100644 --- a/composer.json +++ b/composer.json @@ -13,7 +13,7 @@ "license": "MIT", "require": { "php": "^8.2", - "pestphp/pest": "^2.28", + "pestphp/pest": "^2.35.1", "pestphp/pest-plugin": "^2.1.1", "ext-curl": "*", "ext-zip": "*" diff --git a/src/Factory.php b/src/Factory.php index 8e6e64a..708675c 100644 --- a/src/Factory.php +++ b/src/Factory.php @@ -104,7 +104,7 @@ public function head(): self /** * Force the test to use options method * - * @param array $payload The payload to send with the OPTIONS request + * @param array $payload The payload to send with the OPTIONS request */ public function options(array $payload = []): self { @@ -117,7 +117,7 @@ public function options(array $payload = []): self /** * Force the test to use patch method * - * @param array $payload The payload to send with the PATCH request + * @param array $payload The payload to send with the PATCH request */ public function patch(array $payload = []): self { @@ -130,7 +130,7 @@ public function patch(array $payload = []): self /** * Force the test to use put method * - * @param array $payload The payload to send with the PUT request + * @param array $payload The payload to send with the PUT request */ public function put(array $payload = []): self { @@ -143,7 +143,7 @@ public function put(array $payload = []): self /** * Force the test to use post method * - * @param array $payload The payload to send with the POST request + * @param array $payload The payload to send with the POST request */ public function post(array $payload): self { diff --git a/src/K6.php b/src/K6.php index 3bf23c5..eafd4db 100644 --- a/src/K6.php +++ b/src/K6.php @@ -118,7 +118,7 @@ private static function extractTarGz(string $fileName): void */ private static function extractZip(string $fileName): void { - $zip = new ZipArchive(); + $zip = new ZipArchive; if ($zip->open(self::BIN_DIR.$fileName) !== true) { throw new RuntimeException('Unable to open k6 zip archive.'); diff --git a/src/Run.php b/src/Run.php index 3b33784..a6fa86d 100644 --- a/src/Run.php +++ b/src/Run.php @@ -28,7 +28,7 @@ final class Run /** * Creates a new run instance. * - * @param array{vus: int, duration: string, method: string, payload: array, throw: boolean} $options + * @param array{vus: int, duration: string, method: string, payload: array, throw: bool} $options */ public function __construct( readonly private Url $url, @@ -99,7 +99,7 @@ public function start(): Result $result = new Result($this->url, $metrics); // @phpstan-ignore-line if ($this->verbose) { - $detail = new Detail(); + $detail = new Detail; $detail->print($result); }