|
115 | 115 | <target name="phar" depends="-phar-prepare,-phar-determine-version" description="Create PHAR archive of PHPUnit and all its dependencies">
|
116 | 116 | <antcall target="-phar-build">
|
117 | 117 | <param name="type" value="release"/>
|
118 |
| - <param name="scope" value="true"/> |
119 |
| - </antcall> |
120 |
| - </target> |
121 |
| - |
122 |
| - <target name="unscoped-phar" depends="-phar-prepare,-phar-determine-version" description="Create unscoped PHAR archive of PHPUnit and all its dependencies"> |
123 |
| - <antcall target="-phar-build"> |
124 |
| - <param name="type" value="release"/> |
125 |
| - <param name="scope" value="false"/> |
126 | 118 | </antcall>
|
127 | 119 | </target>
|
128 | 120 |
|
129 | 121 | <target name="phar-snapshot" depends="-phar-prepare" description="Create PHAR archive of PHPUnit and all its dependencies (snapshot)">
|
130 | 122 | <antcall target="-phar-build">
|
131 | 123 | <param name="type" value="snapshot"/>
|
132 |
| - <param name="scope" value="true"/> |
133 |
| - </antcall> |
134 |
| - </target> |
135 |
| - |
136 |
| - <target name="unscoped-phar-snapshot" depends="-phar-prepare" description="Create unscoped PHAR archive of PHPUnit and all its dependencies (snapshot)"> |
137 |
| - <antcall target="-phar-build"> |
138 |
| - <param name="type" value="snapshot"/> |
139 |
| - <param name="scope" value="false"/> |
140 | 124 | </antcall>
|
141 | 125 | </target>
|
142 | 126 |
|
|
365 | 349 | <arg value="${type}"/>
|
366 | 350 | </exec>
|
367 | 351 |
|
368 |
| - <antcall target="-phar-scope" if:true="${scope}"/> |
369 |
| - <copy todir="${basedir}/build/tmp/phar-scoped" unless:true="${scope}"> |
370 |
| - <fileset dir="${basedir}/build/tmp/phar"> |
371 |
| - <include name="**/*" /> |
372 |
| - </fileset> |
373 |
| - </copy> |
| 352 | + <exec executable="${basedir}/tools/php-scoper" taskname="php-scoper"> |
| 353 | + <arg value="add-prefix" /> |
| 354 | + <arg value="--no-ansi" /> |
| 355 | + <arg value="--force" /> |
| 356 | + <arg value="--config" /> |
| 357 | + <arg path="${basedir}/build/config/php-scoper.php" /> |
| 358 | + <arg value="--no-interaction" /> |
| 359 | + <arg value="--stop-on-failure" /> |
| 360 | + <arg value="--output-dir" /> |
| 361 | + <arg path="${basedir}/build/tmp/phar-scoped" /> |
| 362 | + <arg value="--prefix" /> |
| 363 | + <arg value="PHPUnit" /> |
| 364 | + <arg path="${basedir}/build/tmp/phar" /> |
| 365 | + </exec> |
| 366 | + |
| 367 | + <replace file="${basedir}/build/tmp/phar-scoped/phpunit/Util/PHP/Template/PhptTestCase.tpl" token="SebastianBergmann\CodeCoverage\CodeCoverage" value="PHPUnit\SebastianBergmann\CodeCoverage\CodeCoverage"/> |
| 368 | + <replace file="${basedir}/build/tmp/phar-scoped/phpunit/Util/PHP/Template/TestCaseClass.tpl" token="SebastianBergmann\CodeCoverage\CodeCoverage" value="PHPUnit\SebastianBergmann\CodeCoverage\CodeCoverage"/> |
| 369 | + <replace file="${basedir}/build/tmp/phar-scoped/phpunit/Util/PHP/Template/TestCaseMethod.tpl" token="SebastianBergmann\CodeCoverage\CodeCoverage" value="PHPUnit\SebastianBergmann\CodeCoverage\CodeCoverage"/> |
374 | 370 |
|
375 | 371 | <copy file="${basedir}/.phpstorm.meta.php" tofile="${basedir}/build/tmp/phar-scoped/.phpstorm.meta.php"/>
|
376 | 372 |
|
|
407 | 403 | <delete dir="${basedir}/build/tmp"/>
|
408 | 404 | </target>
|
409 | 405 |
|
410 |
| - <target name="-phar-scope"> |
411 |
| - <exec executable="${basedir}/tools/php-scoper" taskname="php-scoper"> |
412 |
| - <arg value="add-prefix" /> |
413 |
| - <arg value="--no-ansi" /> |
414 |
| - <arg value="--force" /> |
415 |
| - <arg value="--config" /> |
416 |
| - <arg path="${basedir}/build/config/php-scoper.php" /> |
417 |
| - <arg value="--no-interaction" /> |
418 |
| - <arg value="--stop-on-failure" /> |
419 |
| - <arg value="--output-dir" /> |
420 |
| - <arg path="${basedir}/build/tmp/phar-scoped" /> |
421 |
| - <arg value="--prefix" /> |
422 |
| - <arg value="PHPUnit" /> |
423 |
| - <arg path="${basedir}/build/tmp/phar" /> |
424 |
| - </exec> |
425 |
| - |
426 |
| - <replace file="${basedir}/build/tmp/phar-scoped/phpunit/Util/PHP/Template/PhptTestCase.tpl" token="SebastianBergmann\CodeCoverage\CodeCoverage" value="PHPUnit\SebastianBergmann\CodeCoverage\CodeCoverage"/> |
427 |
| - <replace file="${basedir}/build/tmp/phar-scoped/phpunit/Util/PHP/Template/TestCaseClass.tpl" token="SebastianBergmann\CodeCoverage\CodeCoverage" value="PHPUnit\SebastianBergmann\CodeCoverage\CodeCoverage"/> |
428 |
| - <replace file="${basedir}/build/tmp/phar-scoped/phpunit/Util/PHP/Template/TestCaseMethod.tpl" token="SebastianBergmann\CodeCoverage\CodeCoverage" value="PHPUnit\SebastianBergmann\CodeCoverage\CodeCoverage"/> |
429 |
| - </target> |
430 |
| - |
431 | 406 | <target name="-phar-determine-version">
|
432 | 407 | <exec executable="${basedir}/build/scripts/version.php" outputproperty="version" failonerror="true" />
|
433 | 408 | </target>
|
434 | 409 |
|
435 |
| - <target name="run-regular-tests-with-unscoped-phar" depends="clean,unscoped-phar-snapshot" description="Build unscoped PHAR snapshot and run the regular test suite with it"> |
436 |
| - <exec executable="${basedir}/tools/phpab" taskname="phpab" failonerror="true"> |
437 |
| - <arg value="--output" /> |
438 |
| - <arg path="${basedir}/tests/autoload.php" /> |
439 |
| - <arg path="${basedir}/tests/_files" /> |
440 |
| - <arg path="${basedir}/tests/end-to-end/_files" /> |
441 |
| - <arg path="${basedir}/tests/end-to-end/execution-order/_files" /> |
442 |
| - <arg path="${basedir}/tests/unit" /> |
443 |
| - </exec> |
444 |
| - |
445 |
| - <delete dir="${basedir}/vendor"/> |
446 |
| - <delete file="${basedir}/composer.lock"/> |
447 |
| - |
448 |
| - <exec executable="${basedir}/build/artifacts/phpunit-snapshot.phar" taskname="phpunit" failonerror="true"> |
449 |
| - <arg value="--testsuite" /> |
450 |
| - <arg value="unit" /> |
451 |
| - </exec> |
452 |
| - |
453 |
| - <delete file="${basedir}/tests/autoload.php"/> |
454 |
| - </target> |
455 |
| - |
456 |
| - <target name="run-phar-specific-tests-with-scoped-phar" depends="clean,phar-snapshot" description="Build scoped PHAR snapshot and run the PHAR-specific tests with it"> |
| 410 | + <target name="run-phar-specific-tests" depends="clean,phar-snapshot" description="Build snapshot PHAR and run the PHAR-specific tests with it"> |
457 | 411 | <delete dir="${basedir}/vendor"/>
|
458 | 412 | <delete file="${basedir}/composer.lock"/>
|
459 | 413 |
|
|
0 commit comments