mirror of
https://github.com/pestphp/pest.git
synced 2026-06-05 02:52:12 +02:00
wip
This commit is contained in:
@ -861,9 +861,10 @@ final class Tia implements AddsOutput, HandlesArguments, Terminable
|
|||||||
private function reportAffectedSummary(array $changedFiles, array $affectedFromChanges, array $failedFromCache, array $affected): void
|
private function reportAffectedSummary(array $changedFiles, array $affectedFromChanges, array $failedFromCache, array $affected): void
|
||||||
{
|
{
|
||||||
$this->output->writeln('');
|
$this->output->writeln('');
|
||||||
$this->renderChild('TIA mode enabled.');
|
|
||||||
|
|
||||||
if ($affected === []) {
|
if ($affected === []) {
|
||||||
|
$this->renderChild('TIA mode enabled.');
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -903,8 +904,8 @@ final class Tia implements AddsOutput, HandlesArguments, Terminable
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->renderBadge('INFO', sprintf(
|
$this->renderChild(sprintf(
|
||||||
'%d affected test file%s%s.',
|
'TIA mode enabled / %d affected test file%s%s.',
|
||||||
count($affected),
|
count($affected),
|
||||||
count($affected) === 1 ? '' : 's',
|
count($affected) === 1 ? '' : 's',
|
||||||
$reasons === [] ? '' : ' ('.implode(', ', $reasons).')',
|
$reasons === [] ? '' : ' ('.implode(', ', $reasons).')',
|
||||||
@ -916,7 +917,7 @@ final class Tia implements AddsOutput, HandlesArguments, Terminable
|
|||||||
$preview = array_slice($sorted, 0, $previewLimit);
|
$preview = array_slice($sorted, 0, $previewLimit);
|
||||||
|
|
||||||
foreach ($preview as $file) {
|
foreach ($preview as $file) {
|
||||||
$this->output->writeln(sprintf(' <fg=gray> • %s</>', $file));
|
$this->output->writeln(sprintf(' <fg=gray>%s</>', $file));
|
||||||
}
|
}
|
||||||
|
|
||||||
$remainder = count($sorted) - count($preview);
|
$remainder = count($sorted) - count($preview);
|
||||||
|
|||||||
Reference in New Issue
Block a user