Skip to content

Commit 4634e70

Browse files
#StandWithUkraine
1 parent 83e5a9a commit 4634e70

File tree

180 files changed

+192
-180
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

180 files changed

+192
-180
lines changed

src/Runner/Version.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public static function series(): string
5757

5858
public static function getVersionString(): string
5959
{
60-
return 'PHPUnit ' . self::id() . ' by Sebastian Bergmann and contributors.';
60+
return 'PHPUnit ' . self::id() . ' #StandWithUkraine';
6161
}
6262

6363
public static function getReleaseChannel(): string

src/TextUI/TestRunner.php

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
use PHPUnit\Runner\TestSuiteLoader;
5454
use PHPUnit\Runner\TestSuiteSorter;
5555
use PHPUnit\Runner\Version;
56+
use PHPUnit\Util\Color;
5657
use PHPUnit\Util\Configuration;
5758
use PHPUnit\Util\Filesystem;
5859
use PHPUnit\Util\Log\JUnit;
@@ -318,7 +319,18 @@ public function doRun(Test $suite, array $arguments = [], array $warnings = [],
318319
$this->printer->setShowProgressAnimation(!$arguments['noInteraction']);
319320
}
320321

321-
$this->write(Version::getVersionString() . "\n");
322+
if ($arguments['colors'] !== ResultPrinter::COLOR_NEVER) {
323+
$this->write(
324+
'PHPUnit ' .
325+
Version::id() .
326+
' ' .
327+
Color::colorize('fg-cyan', '#StandWith') .
328+
Color::colorize('fg-yellow', 'Ukraine') .
329+
"\n"
330+
);
331+
} else {
332+
$this->write(Version::getVersionString() . "\n");
333+
}
322334

323335
if ($arguments['verbose']) {
324336
$this->writeMessage('Runtime', $this->runtime->getNameWithVersionAndCodeCoverageDriver());

tests/end-to-end/abstract-test-class.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ $_SERVER['argv'][] = __DIR__ . '/../_files/AbstractTest.php';
1010
require_once __DIR__ . '/../bootstrap.php';
1111
PHPUnit\TextUI\Command::main();
1212
--EXPECTF--
13-
PHPUnit %s by Sebastian Bergmann and contributors.
13+
PHPUnit %s #StandWithUkraine
1414

1515
Warning: Invocation with class name is deprecated
1616

tests/end-to-end/assertion.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ $_SERVER['argv'][] = __DIR__ . '/../_files/AssertionExampleTest.php';
1818
require_once __DIR__ . '/../bootstrap.php';
1919
PHPUnit\TextUI\Command::main();
2020
--EXPECTF--
21-
PHPUnit %s by Sebastian Bergmann and contributors.
21+
PHPUnit %s #StandWithUkraine
2222

2323
F 1 / 1 (100%)
2424

tests/end-to-end/cli/_files/output-cli-usage.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
PHPUnit %s by Sebastian Bergmann and contributors.
1+
PHPUnit %s #StandWithUkraine
22

33
Usage:
44
phpunit [options] UnitTest [UnitTest.php]

tests/end-to-end/cli/columns-max.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ $_SERVER['argv'][] = __DIR__ . '/../../_files/BankAccountTest.php';
1010
require_once __DIR__ . '/../../bootstrap.php';
1111
PHPUnit\TextUI\Command::main();
1212
--EXPECTF--
13-
PHPUnit %s by Sebastian Bergmann and contributors.
13+
PHPUnit %s #StandWithUkraine
1414

1515
... 3 / 3 (100%)
1616

tests/end-to-end/cli/columns.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ $_SERVER['argv'][] = __DIR__ . '/../../_files/BankAccountTest.php';
1010
require_once __DIR__ . '/../../bootstrap.php';
1111
PHPUnit\TextUI\Command::main();
1212
--EXPECTF--
13-
PHPUnit %s by Sebastian Bergmann and contributors.
13+
PHPUnit %s #StandWithUkraine
1414

1515
... 3 / 3 (100%)
1616

tests/end-to-end/cli/deprecation-warning-with-class.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ $_SERVER['argv'][3] = __DIR__ . '/../../_files/DummyFooTest.php';
99
require_once __DIR__ . '/../../bootstrap.php';
1010
PHPUnit\TextUI\Command::main();
1111
--EXPECTF--
12-
PHPUnit %s by Sebastian Bergmann and contributors.
12+
PHPUnit %s #StandWithUkraine
1313

1414
Warning: Invocation with class name is deprecated
1515

tests/end-to-end/cli/generate-configuration.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ require_once __DIR__ . '/../../bootstrap.php';
1414
chdir(sys_get_temp_dir());
1515
PHPUnit\TextUI\Command::main();
1616
--EXPECTF--
17-
PHPUnit %s by Sebastian Bergmann and contributors.
17+
PHPUnit %s #StandWithUkraine
1818

1919
Generating phpunit.xml in %s
2020

tests/end-to-end/cli/mycommand.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ require_once __DIR__ . '/_files/MyCommand.php';
1414
MyCommand::main();
1515
--EXPECTF--
1616
MyCommand::myHandler 123
17-
PHPUnit %s by Sebastian Bergmann and contributors.
17+
PHPUnit %s #StandWithUkraine
1818

1919
... 3 / 3 (100%)
2020

0 commit comments

Comments
 (0)