diff --git a/ChangeLog-9.6.md b/ChangeLog-9.6.md
index 8fb7ed9e982..8a159baa801 100644
--- a/ChangeLog-9.6.md
+++ b/ChangeLog-9.6.md
@@ -2,6 +2,12 @@
All notable changes of the PHPUnit 9.6 release series are documented in this file using the [Keep a CHANGELOG](https://keepachangelog.com/) principles.
+## [9.6.14] - 2023-MM-DD
+
+### Added
+
+* [#5577](https://github.com/sebastianbergmann/phpunit/issues/5577): `--composer-lock` CLI option for PHAR binary that displays the `composer.lock` used to build the PHAR
+
## [9.6.13] - 2023-09-19
### Changed
@@ -95,6 +101,7 @@ All notable changes of the PHPUnit 9.6 release series are documented in this fil
* [#5064](https://github.com/sebastianbergmann/phpunit/issues/5064): Deprecate `PHPUnit\Framework\TestCase::getMockClass()`
* [#5132](https://github.com/sebastianbergmann/phpunit/issues/5132): Deprecate `Test` suffix for abstract test case classes
+[9.6.14]: https://github.com/sebastianbergmann/phpunit/compare/9.6.13...9.6
[9.6.13]: https://github.com/sebastianbergmann/phpunit/compare/9.6.12...9.6.13
[9.6.12]: https://github.com/sebastianbergmann/phpunit/compare/9.6.11...9.6.12
[9.6.11]: https://github.com/sebastianbergmann/phpunit/compare/9.6.10...9.6.11
diff --git a/build.xml b/build.xml
index 69c8667b7d9..ceaff9fa1ec 100644
--- a/build.xml
+++ b/build.xml
@@ -123,6 +123,8 @@
+
+
diff --git a/build/templates/binary-phar-autoload.php.in b/build/templates/binary-phar-autoload.php.in
index 6175182730c..9980f0deeed 100644
--- a/build/templates/binary-phar-autoload.php.in
+++ b/build/templates/binary-phar-autoload.php.in
@@ -61,13 +61,15 @@ if (__FILE__ === realpath($_SERVER['SCRIPT_NAME'])) {
$execute = false;
}
-$options = getopt('', array('prepend:', 'manifest', 'sbom'));
+$options = getopt('', array('prepend:', 'composer-lock', 'manifest', 'sbom'));
if (isset($options['prepend'])) {
require $options['prepend'];
}
-if (isset($options['manifest'])) {
+if (isset($options['composer-lock'])) {
+ $printComposerLock = true;
+} elseif (isset($options['manifest'])) {
$printManifest = true;
} elseif (isset($options['sbom'])) {
$printSbom = true;
@@ -103,6 +105,12 @@ foreach ([___CLASSLIST___] as $file) {
require __PHPUNIT_PHAR_ROOT__ . '/phpunit/Framework/Assert/Functions.php';
if ($execute) {
+ if (isset($printComposerLock)) {
+ print file_get_contents(__PHPUNIT_PHAR_ROOT__ . '/composer.lock');
+
+ exit;
+ }
+
if (isset($printManifest)) {
print file_get_contents(__PHPUNIT_PHAR_ROOT__ . '/manifest.txt');