File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed
Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change 66 <property name =" phpunit" value =" ${ basedir } /vendor/bin/phpunit" />
77
88 <target name =" build"
9- depends =" composerInstall,clean,autoload"
9+ depends =" composerInstall,clean,autoload,mockAutoload "
1010 description =" Prepares the exercise" />
1111
1212 <target name =" autoload"
1818 <arg path =" ${ basedir } /src/autoload.php" />
1919 <arg path =" ${ basedir } /src" />
2020 </exec >
21-
2221 <property name =" autoload.done" value =" true" />
2322 </target >
2423
24+ <target name =" mockAutoload"
25+ unless =" mockAutoload.done"
26+ description =" Generate the tests mocks autoloader." >
27+ <exec executable =" ${ phpab } " taskname =" phpab" >
28+ <arg value =" -1" />
29+ <arg value =" --output" />
30+ <arg path =" ${ basedir } /tests/mocks/autoload.php" />
31+ <arg path =" ${ basedir } /tests/mocks" />
32+ </exec >
33+ <property name =" mockAutoload.done" value =" true" />
34+ </target >
35+
2536 <target name =" composerInstall"
2637 unless =" composerInstall.done"
2738 description =" Installs composer dependencies" >
You can’t perform that action at this time.
0 commit comments