diff --git a/.gitignore b/.gitignore index dc1654a7..4308c072 100644 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,4 @@ build/ swiftmailer/ docker-compose.override.yml .vscode/ +.idea/ diff --git a/src/Bin/Paraunit.php b/src/Bin/Paraunit.php index 684ffba3..1484332d 100644 --- a/src/Bin/Paraunit.php +++ b/src/Bin/Paraunit.php @@ -30,4 +30,9 @@ public static function getVersion(): string { return PrettyVersions::getVersion('facile-it/paraunit')->getPrettyVersion(); } + + public static function getPHPUnitVersion(): string + { + return PrettyVersions::getVersion('phpunit/phpunit')->getPrettyVersion(); + } } diff --git a/src/Printer/SharkPrinter.php b/src/Printer/SharkPrinter.php index c9bb83a9..de947944 100644 --- a/src/Printer/SharkPrinter.php +++ b/src/Printer/SharkPrinter.php @@ -52,7 +52,7 @@ public function onEngineBeforeStart(): void } $output->writeln(''); - $output->writeln('PARAUNIT v.' . Paraunit::getVersion()); + $output->writeln('PARAUNIT v.' . Paraunit::getVersion() . ' (PHPUnit v.' . Paraunit::getPHPUnitVersion() . ')'); $output->writeln('by Francesco Panina, Alessandro Lai & Shark Dev Team @ Facile.it'); } }