Skip to content
This repository has been archived by the owner on Feb 6, 2022. It is now read-only.

Commit

Permalink
phpunit behavior changed
Browse files Browse the repository at this point in the history
  • Loading branch information
elnebuloso committed Oct 8, 2014
1 parent c1527a8 commit b63dd44
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions commons/targets/test/phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@


<target name="test.phpunit:init" hidden="true">
<property name="test.phpunit.dir" value="tests" />
<property name="test.phpunit.bootstrap" value="${test.phpunit.dir}/bootstrap.php" />
<property name="test.phpunit.coverage" value="true" />
<property name="test.phpunit.php.display_errors" value="on" />
<property name="test.phpunit.php.error_reporting" value="32767" />
Expand Down Expand Up @@ -55,26 +53,7 @@
</else>
</if>

<property name="test.phpunit.bootstrap.usage" value="" override="true" />
<if>
<available file="${project.root}/${test.phpunit.bootstrap}" />
<then>
<property name="test.phpunit.bootstrap.usage" value="--bootstrap ${project.root}/${test.phpunit.bootstrap}" override="true" />
</then>
<elseif>
<available file="${project.root}/vendor/autoload.php" />
<then>
<property name="test.phpunit.bootstrap.usage" value="--bootstrap ${project.root}/vendor/autoload.php" override="true" />
</then>
</elseif>
</if>

<mkdir dir="${project.root}/${test.phpunit.dir}" />
<copy file="${phing:commons:root}/resources/phpunit/phpunit.xml" tofile="${project.root}/${test.phpunit.dir}/phpunit.xml" overwrite="false" />

<exec executable="${phing:commons:root}/bin/phpunit" logoutput="false" passthru="true" level="info" checkreturn="yes">
<arg line="--configuration ${test.phpunit.dir}/phpunit.xml" />
<arg line="${test.phpunit.bootstrap.usage}" />
<arg line="${coverage}" />
<arg value="--log-junit" />
<arg file="${project.reports}/phpunit/testsuites.xml" />
Expand Down Expand Up @@ -112,8 +91,6 @@
<target name="test.phpunit:help" depends="test.phpunit:init">
<echo message="PROPERTY VALUE" />
<echo message="----------------------------------------------------------------------------------------------------" />
<echo message="test.phpunit.dir ${test.phpunit.dir}" />
<echo message="test.phpunit.bootstrap ${test.phpunit.bootstrap}" />
<echo message="test.phpunit.coverage ${test.phpunit.coverage} (yes, no)" />
<echo message="test.phpunit.php.display_errors ${test.phpunit.php.display_errors}" />
<echo message="test.phpunit.php.error_reporting ${test.phpunit.php.error_reporting}" />
Expand Down

0 comments on commit b63dd44

Please sign in to comment.