Skip to content

Commit 518f892

Browse files
Backport #5577 to PHPUnit 8.5
1 parent c1e27da commit 518f892

File tree

4 files changed

+1353
-9
lines changed

4 files changed

+1353
-9
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
tools: none
5252

5353
- name: Install dependencies with Composer
54-
run: ./tools/composer update --no-interaction --no-ansi --no-progress
54+
run: ./tools/composer install --no-interaction --no-ansi --no-progress
5555

5656
- name: Run Psalm on public API
5757
run: ./tools/psalm --config=.psalm/static-analysis.xml --no-progress --show-info=false
@@ -102,7 +102,7 @@ jobs:
102102
tools: none
103103

104104
- name: Install dependencies with Composer
105-
run: php ./tools/composer update --no-ansi --no-interaction --no-progress
105+
run: php ./tools/composer install --no-ansi --no-interaction --no-progress
106106

107107
- name: Run tests with PHPUnit
108108
run: php ./phpunit --testsuite unit
@@ -153,7 +153,7 @@ jobs:
153153
tools: none
154154

155155
- name: Install dependencies with Composer
156-
run: php ./tools/composer update --no-ansi --no-interaction --no-progress
156+
run: php ./tools/composer install --no-ansi --no-interaction --no-progress
157157

158158
- name: Run tests with PHPUnit
159159
run: php ./phpunit --testsuite end-to-end
@@ -180,7 +180,7 @@ jobs:
180180
tools: none
181181

182182
- name: Install dependencies with Composer
183-
run: ./tools/composer update --no-ansi --no-interaction --no-progress
183+
run: ./tools/composer install --no-ansi --no-interaction --no-progress
184184

185185
- name: Collect code coverage with PHPUnit
186186
run: ./phpunit --coverage-clover=coverage.xml

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
# Composer
55
/vendor
6-
/composer.lock
76

87
# Apache Ant
98
/.ant_targets

build.xml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
<delete dir="${basedir}/build/artifacts"/>
88
<delete dir="${basedir}/build/tmp"/>
99
<delete dir="${basedir}/vendor"/>
10-
<delete file="${basedir}/composer.lock"/>
1110

1211
<property name="clean.done" value="true"/>
1312
</target>
@@ -30,11 +29,12 @@
3029
</target>
3130

3231
<target name="-dependencies-installed">
33-
<available file="${basedir}/composer.lock" property="dependencies-installed"/>
32+
<available type="dir" file="${basedir}/vendor" property="dependencies-installed"/>
3433
</target>
3534

3635
<target name="install-dependencies" unless="dependencies-installed" depends="-dependencies-installed,validate-composer-json" description="Install dependencies with Composer">
3736
<copy file="${basedir}/composer.json" tofile="${basedir}/build/tmp/composer.json"/>
37+
<copy file="${basedir}/composer.lock" tofile="${basedir}/build/tmp/composer.lock"/>
3838

3939
<exec executable="${basedir}/tools/composer" taskname="composer">
4040
<arg value="require"/>
@@ -50,6 +50,7 @@
5050
</exec>
5151

5252
<move file="${basedir}/build/tmp/composer.json" tofile="${basedir}/composer.json"/>
53+
<move file="${basedir}/build/tmp/composer.lock" tofile="${basedir}/composer.lock"/>
5354
</target>
5455

5556
<target name="check-dependencies" description="Performs check for outdated dependencies">
@@ -435,7 +436,6 @@
435436

436437
<target name="build-phar-and-run-phar-specific-tests" depends="clean,phar-snapshot" description="Build PHAR and run the PHAR-specific tests with it">
437438
<delete dir="${basedir}/vendor"/>
438-
<delete file="${basedir}/composer.lock"/>
439439

440440
<antcall target="run-phar-specific-tests"/>
441441
</target>
@@ -450,7 +450,6 @@
450450

451451
<target name="build-phar-and-run-phar-specific-tests-without-code-coverage" depends="clean,phar-snapshot" description="Build PHAR and run the PHAR-specific tests with it without code coverage">
452452
<delete dir="${basedir}/vendor"/>
453-
<delete file="${basedir}/composer.lock"/>
454453

455454
<antcall target="run-phar-specific-tests-without-code-coverage"/>
456455
</target>

0 commit comments

Comments
 (0)