mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 07:47:22 +01:00
Merge branch '2.x' into 3.x
This commit is contained in:
2
.github/workflows/tests.yml
vendored
2
.github/workflows/tests.yml
vendored
@ -3,8 +3,6 @@ name: Tests
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
pull_request:
|
pull_request:
|
||||||
schedule:
|
|
||||||
- cron: '0 0 * * *'
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
tests:
|
tests:
|
||||||
|
|||||||
@ -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) {
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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));
|
||||||
|
|||||||
Reference in New Issue
Block a user