|
96 | 96 | <target name="phar" depends="-phar-prepare,-phar-determine-version" description="Create PHAR archive of PHPUnit and all its dependencies">
|
97 | 97 | <antcall target="-phar-build">
|
98 | 98 | <param name="type" value="release"/>
|
99 |
| - <param name="scope" value="true"/> |
100 |
| - </antcall> |
101 |
| - </target> |
102 |
| - |
103 |
| - <target name="unscoped-phar" depends="-phar-prepare,-phar-determine-version" description="Create unscoped PHAR archive of PHPUnit and all its dependencies"> |
104 |
| - <antcall target="-phar-build"> |
105 |
| - <param name="type" value="release"/> |
106 |
| - <param name="scope" value="false"/> |
107 | 99 | </antcall>
|
108 | 100 | </target>
|
109 | 101 |
|
110 | 102 | <target name="phar-snapshot" depends="-phar-prepare" description="Create PHAR archive of PHPUnit and all its dependencies (snapshot)">
|
111 | 103 | <antcall target="-phar-build">
|
112 | 104 | <param name="type" value="snapshot"/>
|
113 |
| - <param name="scope" value="true"/> |
114 |
| - </antcall> |
115 |
| - </target> |
116 |
| - |
117 |
| - <target name="unscoped-phar-snapshot" depends="-phar-prepare" description="Create unscoped PHAR archive of PHPUnit and all its dependencies (snapshot)"> |
118 |
| - <antcall target="-phar-build"> |
119 |
| - <param name="type" value="snapshot"/> |
120 |
| - <param name="scope" value="false"/> |
121 | 105 | </antcall>
|
122 | 106 | </target>
|
123 | 107 |
|
|
379 | 363 | <arg value="${type}"/>
|
380 | 364 | </exec>
|
381 | 365 |
|
382 |
| - <antcall target="-phar-scope" if:true="${scope}"/> |
383 |
| - <copy todir="${basedir}/build/tmp/phar-scoped" unless:true="${scope}"> |
384 |
| - <fileset dir="${basedir}/build/tmp/phar"> |
385 |
| - <include name="**/*" /> |
386 |
| - </fileset> |
387 |
| - </copy> |
| 366 | + <exec executable="${basedir}/tools/php-scoper" taskname="php-scoper"> |
| 367 | + <arg value="add-prefix" /> |
| 368 | + <arg value="--no-ansi" /> |
| 369 | + <arg value="--force" /> |
| 370 | + <arg value="--config" /> |
| 371 | + <arg path="${basedir}/build/config/php-scoper.php" /> |
| 372 | + <arg value="--no-interaction" /> |
| 373 | + <arg value="--stop-on-failure" /> |
| 374 | + <arg value="--output-dir" /> |
| 375 | + <arg path="${basedir}/build/tmp/phar-scoped" /> |
| 376 | + <arg value="--prefix" /> |
| 377 | + <arg value="PHPUnit" /> |
| 378 | + <arg path="${basedir}/build/tmp/phar" /> |
| 379 | + </exec> |
| 380 | + |
| 381 | + <replace file="${basedir}/build/tmp/phar-scoped/phpunit/Util/PHP/Template/PhptTestCase.tpl" token="SebastianBergmann\CodeCoverage\CodeCoverage" value="PHPUnit\SebastianBergmann\CodeCoverage\CodeCoverage"/> |
| 382 | + <replace file="${basedir}/build/tmp/phar-scoped/phpunit/Util/PHP/Template/PhptTestCase.tpl" token="SebastianBergmann\CodeCoverage\Driver\Selector" value="PHPUnit\SebastianBergmann\CodeCoverage\Driver\Selector"/> |
| 383 | + <replace file="${basedir}/build/tmp/phar-scoped/phpunit/Util/PHP/Template/PhptTestCase.tpl" token="SebastianBergmann\CodeCoverage\Filter" value="PHPUnit\SebastianBergmann\CodeCoverage\Filter"/> |
| 384 | + <replace file="${basedir}/build/tmp/phar-scoped/phpunit/Util/PHP/Template/TestCaseClass.tpl" token="SebastianBergmann\CodeCoverage\CodeCoverage" value="PHPUnit\SebastianBergmann\CodeCoverage\CodeCoverage"/> |
| 385 | + <replace file="${basedir}/build/tmp/phar-scoped/phpunit/Util/PHP/Template/TestCaseClass.tpl" token="SebastianBergmann\CodeCoverage\Driver\Selector" value="PHPUnit\SebastianBergmann\CodeCoverage\Driver\Selector"/> |
| 386 | + <replace file="${basedir}/build/tmp/phar-scoped/phpunit/Util/PHP/Template/TestCaseMethod.tpl" token="SebastianBergmann\CodeCoverage\CodeCoverage" value="PHPUnit\SebastianBergmann\CodeCoverage\CodeCoverage"/> |
| 387 | + <replace file="${basedir}/build/tmp/phar-scoped/phpunit/Util/PHP/Template/TestCaseMethod.tpl" token="SebastianBergmann\CodeCoverage\Driver\Selector" value="PHPUnit\SebastianBergmann\CodeCoverage\Driver\Selector"/> |
388 | 388 |
|
389 | 389 | <copy file="${basedir}/.phpstorm.meta.php" tofile="${basedir}/build/tmp/phar-scoped/.phpstorm.meta.php"/>
|
390 | 390 |
|
|
421 | 421 | <delete dir="${basedir}/build/tmp"/>
|
422 | 422 | </target>
|
423 | 423 |
|
424 |
| - <target name="-phar-scope"> |
425 |
| - <exec executable="${basedir}/tools/php-scoper" taskname="php-scoper"> |
426 |
| - <arg value="add-prefix" /> |
427 |
| - <arg value="--no-ansi" /> |
428 |
| - <arg value="--force" /> |
429 |
| - <arg value="--config" /> |
430 |
| - <arg path="${basedir}/build/config/php-scoper.php" /> |
431 |
| - <arg value="--no-interaction" /> |
432 |
| - <arg value="--stop-on-failure" /> |
433 |
| - <arg value="--output-dir" /> |
434 |
| - <arg path="${basedir}/build/tmp/phar-scoped" /> |
435 |
| - <arg value="--prefix" /> |
436 |
| - <arg value="PHPUnit" /> |
437 |
| - <arg path="${basedir}/build/tmp/phar" /> |
438 |
| - </exec> |
439 |
| - |
440 |
| - <replace file="${basedir}/build/tmp/phar-scoped/phpunit/Util/PHP/Template/PhptTestCase.tpl" token="SebastianBergmann\CodeCoverage\CodeCoverage" value="PHPUnit\SebastianBergmann\CodeCoverage\CodeCoverage"/> |
441 |
| - <replace file="${basedir}/build/tmp/phar-scoped/phpunit/Util/PHP/Template/PhptTestCase.tpl" token="SebastianBergmann\CodeCoverage\Driver\Selector" value="PHPUnit\SebastianBergmann\CodeCoverage\Driver\Selector"/> |
442 |
| - <replace file="${basedir}/build/tmp/phar-scoped/phpunit/Util/PHP/Template/PhptTestCase.tpl" token="SebastianBergmann\CodeCoverage\Filter" value="PHPUnit\SebastianBergmann\CodeCoverage\Filter"/> |
443 |
| - <replace file="${basedir}/build/tmp/phar-scoped/phpunit/Util/PHP/Template/TestCaseClass.tpl" token="SebastianBergmann\CodeCoverage\CodeCoverage" value="PHPUnit\SebastianBergmann\CodeCoverage\CodeCoverage"/> |
444 |
| - <replace file="${basedir}/build/tmp/phar-scoped/phpunit/Util/PHP/Template/TestCaseClass.tpl" token="SebastianBergmann\CodeCoverage\Driver\Selector" value="PHPUnit\SebastianBergmann\CodeCoverage\Driver\Selector"/> |
445 |
| - <replace file="${basedir}/build/tmp/phar-scoped/phpunit/Util/PHP/Template/TestCaseMethod.tpl" token="SebastianBergmann\CodeCoverage\CodeCoverage" value="PHPUnit\SebastianBergmann\CodeCoverage\CodeCoverage"/> |
446 |
| - <replace file="${basedir}/build/tmp/phar-scoped/phpunit/Util/PHP/Template/TestCaseMethod.tpl" token="SebastianBergmann\CodeCoverage\Driver\Selector" value="PHPUnit\SebastianBergmann\CodeCoverage\Driver\Selector"/> |
447 |
| - </target> |
448 |
| - |
449 | 424 | <target name="-phar-determine-version">
|
450 | 425 | <exec executable="${basedir}/build/scripts/version.php" outputproperty="version" failonerror="true" />
|
451 | 426 | </target>
|
452 | 427 |
|
453 |
| - <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"> |
454 |
| - <exec executable="${basedir}/tools/phpab" taskname="phpab" failonerror="true"> |
455 |
| - <arg value="--output" /> |
456 |
| - <arg path="${basedir}/tests/autoload.php" /> |
457 |
| - <arg path="${basedir}/tests/_files" /> |
458 |
| - <arg path="${basedir}/tests/end-to-end/_files" /> |
459 |
| - <arg path="${basedir}/tests/end-to-end/execution-order/_files" /> |
460 |
| - <arg path="${basedir}/tests/unit" /> |
461 |
| - </exec> |
462 |
| - |
463 |
| - <delete dir="${basedir}/vendor"/> |
464 |
| - <delete file="${basedir}/composer.lock"/> |
465 |
| - |
466 |
| - <exec executable="${basedir}/build/artifacts/phpunit-snapshot.phar" taskname="phpunit" failonerror="true"> |
467 |
| - <arg value="--testsuite" /> |
468 |
| - <arg value="unit" /> |
469 |
| - </exec> |
470 |
| - |
471 |
| - <delete file="${basedir}/tests/autoload.php"/> |
472 |
| - </target> |
473 |
| - |
474 |
| - <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"> |
| 428 | + <target name="run-phar-specific-tests" depends="clean,phar-snapshot" description="Build snapshot PHAR and run the PHAR-specific tests with it"> |
475 | 429 | <delete dir="${basedir}/vendor"/>
|
476 | 430 | <delete file="${basedir}/composer.lock"/>
|
477 | 431 |
|
|
0 commit comments