Merge branch '2.x' into 3.x

This commit is contained in:
Nuno Maduro
2024-03-29 23:09:19 +00:00
5 changed files with 8 additions and 3 deletions

View File

@ -3,8 +3,6 @@ name: Tests
on: on:
push: push:
pull_request: pull_request:
schedule:
- cron: '0 0 * * *'
jobs: jobs:
tests: tests:

View File

@ -81,6 +81,7 @@ $bootPest = (static function (): void {
$getopt['teamcity-file'] ?? null, $getopt['teamcity-file'] ?? null,
$getopt['testdox-file'] ?? null, $getopt['testdox-file'] ?? null,
isset($getopt['testdox-color']), isset($getopt['testdox-color']),
$getopt['testdox-columns'] ?? null,
); );
while (true) { while (true) {

View File

@ -6,7 +6,7 @@ namespace Pest;
function version(): string function version(): string
{ {
return '3.0.0-dev-0005'; return '3.0.0-dev-0006';
} }
function testDirectory(string $file = ''): string function testDirectory(string $file = ''): string

View File

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

View File

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