Compare commits

...

5 Commits

Author SHA1 Message Date
b9e3146a47 release: v2.34.3 2024-03-14 19:40:23 +00:00
ce1607cba9 chore: bumps phpunit 2024-03-14 19:40:16 +00:00
ac07bc1770 chore: override changes 2024-03-14 19:40:03 +00:00
521a41dd10 fix: no duplicate --no-output 2024-03-14 19:39:45 +00:00
1b68b340e8 chore: fixes static analysis 2024-03-14 19:39:31 +00:00
8 changed files with 18 additions and 11 deletions

View File

@ -18,15 +18,15 @@
],
"require": {
"php": "^8.1.0",
"brianium/paratest": "^7.3.1",
"brianium/paratest": "^7.4.3",
"nunomaduro/collision": "^7.10.0|^8.1.1",
"nunomaduro/termwind": "^1.15.1|^2.0.1",
"pestphp/pest-plugin": "^2.1.1",
"pestphp/pest-plugin-arch": "^2.7.0",
"phpunit/phpunit": "^10.5.12"
"phpunit/phpunit": "^10.5.13"
},
"conflict": {
"phpunit/phpunit": ">10.5.12",
"phpunit/phpunit": ">10.5.13",
"sebastian/exporter": "<5.1.0",
"webmozart/assert": "<1.11.0"
},

View File

@ -59,7 +59,6 @@ use function file_get_contents;
use function file_put_contents;
use function is_array;
use function is_dir;
use function is_file;
use function json_decode;
use function json_encode;
use function Pest\version;
@ -129,13 +128,15 @@ final class DefaultResultCache implements ResultCache
public function load(): void
{
if (! is_file($this->cacheFilename)) {
$contents = @file_get_contents($this->cacheFilename);
if ($contents === false) {
return;
}
$data = json_decode(
file_get_contents($this->cacheFilename),
true
$contents,
true,
);
if ($data === null) {

View File

@ -19,7 +19,7 @@ final class BootOverrides implements Bootstrapper
*/
public const FILES = [
'c7b9c8a96006dea314204a8f09a8764e51ce0b9b79aadd58da52e8c328db4870' => 'Runner/Filter/NameFilterIterator.php',
'52b2574e96269aca1bb2d41bbf418c3bcf23dd21d14c66f90789025c309e39df' => 'Runner/ResultCache/DefaultResultCache.php',
'c5381bc34f0cb437a58ce6cf641a0e0d4a32c4190959f5419e4bd509f9caa4b8' => 'Runner/ResultCache/DefaultResultCache.php',
'bc8718c89264f65800beabc23e51c6d3bcff87dfc764a12179ef5dbfde272c8b' => 'Runner/TestSuiteLoader.php',
'f41e48d6cb546772a7de4f8e66b6b7ce894a5318d063eb52e354d206e96c701c' => 'TextUI/Command/Commands/WarmCodeCoverageCacheCommand.php',
'cb7519f2d82893640b694492cf7ec9528da80773cc1d259634181b5d393528b5' => 'TextUI/Output/Default/ProgressPrinter/Subscriber/TestSkippedSubscriber.php',

View File

@ -6,7 +6,7 @@ namespace Pest;
function version(): string
{
return '2.34.2';
return '2.34.3';
}
function testDirectory(string $file = ''): string

View File

@ -22,6 +22,10 @@ final class Printer implements HandlesArguments
return $arguments;
}
if (in_array('--no-output', $arguments, true)) {
return $arguments;
}
return $this->pushArgument('--no-output', $arguments);
}
}

View File

@ -64,6 +64,8 @@ final class Exporter
continue;
}
assert(is_array($data));
$result[] = $context->contains($data[$key]) !== false
? '*RECURSION*'
: sprintf('[%s]', $this->shortenedRecursiveExport($data[$key], $context));

View File

@ -1,5 +1,5 @@
Pest Testing Framework 2.34.2.
Pest Testing Framework 2.34.3.
USAGE: pest <file> [options]

View File

@ -1,3 +1,3 @@
Pest Testing Framework 2.34.2.
Pest Testing Framework 2.34.3.