|
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 |
|
|
330 | 314 | <arg value="${type}"/>
|
331 | 315 | </exec>
|
332 | 316 |
|
333 |
| - <antcall target="-phar-scope" if:true="${scope}"/> |
334 |
| - <copy todir="${basedir}/build/tmp/phar-scoped" unless:true="${scope}"> |
335 |
| - <fileset dir="${basedir}/build/tmp/phar"> |
336 |
| - <include name="**/*" /> |
337 |
| - </fileset> |
338 |
| - </copy> |
| 317 | + <exec executable="${basedir}/tools/php-scoper" taskname="php-scoper"> |
| 318 | + <arg value="add-prefix" /> |
| 319 | + <arg value="--no-ansi" /> |
| 320 | + <arg value="--force" /> |
| 321 | + <arg value="--config" /> |
| 322 | + <arg path="${basedir}/build/config/php-scoper.php" /> |
| 323 | + <arg value="--no-interaction" /> |
| 324 | + <arg value="--stop-on-failure" /> |
| 325 | + <arg value="--output-dir" /> |
| 326 | + <arg path="${basedir}/build/tmp/phar-scoped" /> |
| 327 | + <arg value="--prefix" /> |
| 328 | + <arg value="PHPUnit" /> |
| 329 | + <arg path="${basedir}/build/tmp/phar" /> |
| 330 | + </exec> |
| 331 | + |
| 332 | + <replace file="${basedir}/build/tmp/phar-scoped/phpunit/Util/PHP/Template/PhptTestCase.tpl" token="SebastianBergmann\CodeCoverage\CodeCoverage" value="PHPUnit\SebastianBergmann\CodeCoverage\CodeCoverage"/> |
| 333 | + <replace file="${basedir}/build/tmp/phar-scoped/phpunit/Util/PHP/Template/PhptTestCase.tpl" token="SebastianBergmann\CodeCoverage\Driver\Selector" value="PHPUnit\SebastianBergmann\CodeCoverage\Driver\Selector"/> |
| 334 | + <replace file="${basedir}/build/tmp/phar-scoped/phpunit/Util/PHP/Template/PhptTestCase.tpl" token="SebastianBergmann\CodeCoverage\Filter" value="PHPUnit\SebastianBergmann\CodeCoverage\Filter"/> |
| 335 | + <replace file="${basedir}/build/tmp/phar-scoped/phpunit/Util/PHP/Template/TestCaseClass.tpl" token="SebastianBergmann\CodeCoverage\CodeCoverage" value="PHPUnit\SebastianBergmann\CodeCoverage\CodeCoverage"/> |
| 336 | + <replace file="${basedir}/build/tmp/phar-scoped/phpunit/Util/PHP/Template/TestCaseClass.tpl" token="SebastianBergmann\CodeCoverage\Driver\Selector" value="PHPUnit\SebastianBergmann\CodeCoverage\Driver\Selector"/> |
| 337 | + <replace file="${basedir}/build/tmp/phar-scoped/phpunit/Util/PHP/Template/TestCaseMethod.tpl" token="SebastianBergmann\CodeCoverage\CodeCoverage" value="PHPUnit\SebastianBergmann\CodeCoverage\CodeCoverage"/> |
| 338 | + <replace file="${basedir}/build/tmp/phar-scoped/phpunit/Util/PHP/Template/TestCaseMethod.tpl" token="SebastianBergmann\CodeCoverage\Driver\Selector" value="PHPUnit\SebastianBergmann\CodeCoverage\Driver\Selector"/> |
339 | 339 |
|
340 | 340 | <copy file="${basedir}/.phpstorm.meta.php" tofile="${basedir}/build/tmp/phar-scoped/.phpstorm.meta.php"/>
|
341 | 341 |
|
|
372 | 372 | <delete dir="${basedir}/build/tmp"/>
|
373 | 373 | </target>
|
374 | 374 |
|
375 |
| - <target name="-phar-scope"> |
376 |
| - <exec executable="${basedir}/tools/php-scoper" taskname="php-scoper"> |
377 |
| - <arg value="add-prefix" /> |
378 |
| - <arg value="--no-ansi" /> |
379 |
| - <arg value="--force" /> |
380 |
| - <arg value="--config" /> |
381 |
| - <arg path="${basedir}/build/config/php-scoper.php" /> |
382 |
| - <arg value="--no-interaction" /> |
383 |
| - <arg value="--stop-on-failure" /> |
384 |
| - <arg value="--output-dir" /> |
385 |
| - <arg path="${basedir}/build/tmp/phar-scoped" /> |
386 |
| - <arg value="--prefix" /> |
387 |
| - <arg value="PHPUnit" /> |
388 |
| - <arg path="${basedir}/build/tmp/phar" /> |
389 |
| - </exec> |
390 |
| - |
391 |
| - <replace file="${basedir}/build/tmp/phar-scoped/phpunit/Util/PHP/Template/PhptTestCase.tpl" token="SebastianBergmann\CodeCoverage\CodeCoverage" value="PHPUnit\SebastianBergmann\CodeCoverage\CodeCoverage"/> |
392 |
| - <replace file="${basedir}/build/tmp/phar-scoped/phpunit/Util/PHP/Template/PhptTestCase.tpl" token="SebastianBergmann\CodeCoverage\Driver\Selector" value="PHPUnit\SebastianBergmann\CodeCoverage\Driver\Selector"/> |
393 |
| - <replace file="${basedir}/build/tmp/phar-scoped/phpunit/Util/PHP/Template/PhptTestCase.tpl" token="SebastianBergmann\CodeCoverage\Filter" value="PHPUnit\SebastianBergmann\CodeCoverage\Filter"/> |
394 |
| - <replace file="${basedir}/build/tmp/phar-scoped/phpunit/Util/PHP/Template/TestCaseClass.tpl" token="SebastianBergmann\CodeCoverage\CodeCoverage" value="PHPUnit\SebastianBergmann\CodeCoverage\CodeCoverage"/> |
395 |
| - <replace file="${basedir}/build/tmp/phar-scoped/phpunit/Util/PHP/Template/TestCaseClass.tpl" token="SebastianBergmann\CodeCoverage\Driver\Selector" value="PHPUnit\SebastianBergmann\CodeCoverage\Driver\Selector"/> |
396 |
| - <replace file="${basedir}/build/tmp/phar-scoped/phpunit/Util/PHP/Template/TestCaseMethod.tpl" token="SebastianBergmann\CodeCoverage\CodeCoverage" value="PHPUnit\SebastianBergmann\CodeCoverage\CodeCoverage"/> |
397 |
| - <replace file="${basedir}/build/tmp/phar-scoped/phpunit/Util/PHP/Template/TestCaseMethod.tpl" token="SebastianBergmann\CodeCoverage\Driver\Selector" value="PHPUnit\SebastianBergmann\CodeCoverage\Driver\Selector"/> |
398 |
| - </target> |
399 |
| - |
400 | 375 | <target name="-phar-determine-version">
|
401 | 376 | <exec executable="${basedir}/build/scripts/version.php" outputproperty="version" failonerror="true" />
|
402 | 377 | </target>
|
403 | 378 |
|
404 |
| - <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"> |
405 |
| - <exec executable="${basedir}/tools/phpab" taskname="phpab" failonerror="true"> |
406 |
| - <arg value="--output" /> |
407 |
| - <arg path="${basedir}/tests/autoload.php" /> |
408 |
| - <arg path="${basedir}/tests/_files" /> |
409 |
| - <arg path="${basedir}/tests/end-to-end/_files" /> |
410 |
| - <arg path="${basedir}/tests/end-to-end/execution-order/_files" /> |
411 |
| - <arg path="${basedir}/tests/unit" /> |
412 |
| - </exec> |
413 |
| - |
414 |
| - <delete dir="${basedir}/vendor"/> |
415 |
| - <delete file="${basedir}/composer.lock"/> |
416 |
| - |
417 |
| - <exec executable="${basedir}/build/artifacts/phpunit-snapshot.phar" taskname="phpunit" failonerror="true"> |
418 |
| - <arg value="--testsuite" /> |
419 |
| - <arg value="unit" /> |
420 |
| - </exec> |
421 |
| - |
422 |
| - <delete file="${basedir}/tests/autoload.php"/> |
423 |
| - </target> |
424 |
| - |
425 |
| - <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"> |
| 379 | + <target name="run-phar-specific-tests" depends="clean,phar-snapshot" description="Build snapshot PHAR and run the PHAR-specific tests with it"> |
426 | 380 | <delete dir="${basedir}/vendor"/>
|
427 | 381 | <delete file="${basedir}/composer.lock"/>
|
428 | 382 |
|
|
0 commit comments