Skip to content

Commit c176b1f

Browse files
Merge branch '8.5' into 9.6
2 parents 5dafcd8 + a85aa74 commit c176b1f

File tree

3 files changed

+19
-2
lines changed

3 files changed

+19
-2
lines changed

ChangeLog-9.6.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
All notable changes of the PHPUnit 9.6 release series are documented in this file using the [Keep a CHANGELOG](https://keepachangelog.com/) principles.
44

5+
## [9.6.14] - 2023-MM-DD
6+
7+
### Added
8+
9+
* [#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
10+
511
## [9.6.13] - 2023-09-19
612

713
### Changed
@@ -95,6 +101,7 @@ All notable changes of the PHPUnit 9.6 release series are documented in this fil
95101
* [#5064](https://github.com/sebastianbergmann/phpunit/issues/5064): Deprecate `PHPUnit\Framework\TestCase::getMockClass()`
96102
* [#5132](https://github.com/sebastianbergmann/phpunit/issues/5132): Deprecate `Test` suffix for abstract test case classes
97103

104+
[9.6.14]: https://github.com/sebastianbergmann/phpunit/compare/9.6.13...9.6
98105
[9.6.13]: https://github.com/sebastianbergmann/phpunit/compare/9.6.12...9.6.13
99106
[9.6.12]: https://github.com/sebastianbergmann/phpunit/compare/9.6.11...9.6.12
100107
[9.6.11]: https://github.com/sebastianbergmann/phpunit/compare/9.6.10...9.6.11

build.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,8 @@
123123
</fileset>
124124
</copy>
125125

126+
<copy file="${basedir}/composer.lock" tofile="${basedir}/build/tmp/phar/composer.lock"/>
127+
126128
<exec executable="${basedir}/build/scripts/phar-manifest.php" failonerror="true">
127129
<arg path="${basedir}/build/tmp/phar/manifest.txt"/>
128130
<arg path="${basedir}/build/tmp/phar/sbom.xml"/>

build/templates/binary-phar-autoload.php.in

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,15 @@ if (__FILE__ === realpath($_SERVER['SCRIPT_NAME'])) {
6161
$execute = false;
6262
}
6363

64-
$options = getopt('', array('prepend:', 'manifest', 'sbom'));
64+
$options = getopt('', array('prepend:', 'composer-lock', 'manifest', 'sbom'));
6565

6666
if (isset($options['prepend'])) {
6767
require $options['prepend'];
6868
}
6969

70-
if (isset($options['manifest'])) {
70+
if (isset($options['composer-lock'])) {
71+
$printComposerLock = true;
72+
} elseif (isset($options['manifest'])) {
7173
$printManifest = true;
7274
} elseif (isset($options['sbom'])) {
7375
$printSbom = true;
@@ -103,6 +105,12 @@ foreach ([___CLASSLIST___] as $file) {
103105
require __PHPUNIT_PHAR_ROOT__ . '/phpunit/Framework/Assert/Functions.php';
104106

105107
if ($execute) {
108+
if (isset($printComposerLock)) {
109+
print file_get_contents(__PHPUNIT_PHAR_ROOT__ . '/composer.lock');
110+
111+
exit;
112+
}
113+
106114
if (isset($printManifest)) {
107115
print file_get_contents(__PHPUNIT_PHAR_ROOT__ . '/manifest.txt');
108116

0 commit comments

Comments
 (0)