Skip to content

Commit

Permalink
Add target for generating an autoloader script for PHPUnit's own test…
Browse files Browse the repository at this point in the history
… suite's test fixture
  • Loading branch information
sebastianbergmann committed Jul 25, 2021
1 parent c10a9e4 commit 0bdef05
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# Build artifacts and temporary files
/build/artifacts
/build/tmp
/tests/autoload.php

# PHP-CS-Fixer
/.php-cs-fixer.php
Expand Down
10 changes: 10 additions & 0 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,16 @@
<property name="prepare.done" value="true"/>
</target>

<target name="generate-autoloader-for-test-fixture" description="Generate autoloader for test fixture">
<exec executable="${basedir}/tools/phpab" taskname="phpab" failonerror="true">
<arg value="--output" />
<arg path="${basedir}/tests/autoload.php" />
<arg path="${basedir}/tests/_files" />
<arg path="${basedir}/tests/end-to-end/execution-order/_files" />
<arg path="${basedir}/tests/unit" />
</exec>
</target>

<target name="validate-composer-json" depends="clean" unless="validate-composer-json.done" description="Validate composer.json">
<exec executable="${basedir}/tools/composer" failonerror="true" taskname="composer">
<arg value="validate"/>
Expand Down

0 comments on commit 0bdef05

Please sign in to comment.