From 369e7b6e045d52ff5dcc04b1e22fa75f799fd8ab Mon Sep 17 00:00:00 2001 From: Yassine Guedidi Date: Sun, 7 Jan 2024 22:47:00 +0100 Subject: [PATCH] Show the output of commands in the bootstrap file --- tests/bootstrap.php | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/tests/bootstrap.php b/tests/bootstrap.php index dce05cf6a..a84eb8700 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -13,14 +13,18 @@ require __DIR__ . '/../vendor/autoload.php'; 'doctrine:database:drop', '--force', '--env=test', -]))->run(); +]))->run(function ($type, $buffer) { + echo $buffer; +}); (new Process([ 'php', __DIR__ . '/../bin/console', 'doctrine:database:create', '--env=test', -]))->mustRun(); +]))->mustRun(function ($type, $buffer) { + echo $buffer; +}); (new Process([ 'php', @@ -29,7 +33,9 @@ require __DIR__ . '/../vendor/autoload.php'; '--no-interaction', '--env=test', '-vv', -]))->mustRun(); +]))->mustRun(function ($type, $buffer) { + echo $buffer; +}); (new Process([ 'php', @@ -37,4 +43,6 @@ require __DIR__ . '/../vendor/autoload.php'; 'doctrine:fixtures:load', '--no-interaction', '--env=test', -]))->mustRun(); +]))->mustRun(function ($type, $buffer) { + echo $buffer; +});