Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#212 Adding PHPUnit version info (2.x) #213

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@ build/
swiftmailer/
docker-compose.override.yml
.vscode/
.idea/
.hugo_build.lock
themes
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ All notable changes to this project will be documented in this file. For previou

The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
## Unreleased
* Add PHPUnit version info [#213](https://github.com/facile-it/paraunit/pull/213)

## [2.3.1] - 2024-02-06
* Fix support for PHPUnit 11, due to dependency conflicts [#230](https://github.com/facile-it/paraunit/pull/230)
Expand Down
5 changes: 5 additions & 0 deletions src/Bin/Paraunit.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
2 changes: 1 addition & 1 deletion src/Printer/SharkPrinter.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function onEngineBeforeStart(): void
}

$this->output->writeln('');
$this->output->writeln('PARAUNIT v.' . Paraunit::getVersion());
$this->output->writeln('PARAUNIT v.' . Paraunit::getVersion() . ' (PHPUnit v.' . Paraunit::getPHPUnitVersion() . ')');
$this->output->writeln('by Francesco Panina, Alessandro Lai & Shark Dev Team @ Facile.it');
}
}
2 changes: 1 addition & 1 deletion tests/PHPT/coverage.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ require_once __DIR__ . '/../../src/Bin/paraunit';
--ARGS--
coverage FakeDriverTest --text --no-ansi
--EXPECTF--
PARAUNIT v%s
PARAUNIT v%s (PHPUnit v%s)
by Francesco Panina, Alessandro Lai & Shark Dev Team @ Facile.it
Coverage driver in use: %s
... %w 3
Expand Down
2 changes: 1 addition & 1 deletion tests/PHPT/pass-through.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ require_once __DIR__ . '/../../src/Bin/paraunit';
--ARGS--
run IntentionalWarningTestStub -c tests/Stub/phpunit_for_stubs.xml --pass-through=--stop-on-warning
--EXPECTF--
PARAUNIT v%s
PARAUNIT v%s (PHPUnit v%s)
by Francesco Panina, Alessandro Lai & Shark Dev Team @ Facile.it
W %w 1

Expand Down
2 changes: 1 addition & 1 deletion tests/PHPT/run.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ require_once __DIR__ . '/../../src/Bin/paraunit';
--ARGS--
run FakeDriverTest --no-ansi
--EXPECTF--
PARAUNIT v%s
PARAUNIT v%s (PHPUnit v%s)
by Francesco Panina, Alessandro Lai & Shark Dev Team @ Facile.it
... %w 3

Expand Down
Loading