title: How to use existing phpunit.xml in phing build.xml?
body: <p>I have an existing <strong>phpunit.xml</strong> (configuration file for phpunit), which looks like this:</p>
  
  <pre><code>&lt;phpunit backupGlobals="false"
      backupStaticAttributes="false"
      bootstrap="./tests/bootstrap.php"
      convertErrorsToExceptions="true"
      convertNoticesToExceptions="true"
      convertWarningsToExceptions="true"
      strict="true" 
      verbose="true"
      colors="true"&gt;
  
      &lt;testsuites&gt;
          &lt;testsuite name="My Tests"&gt;
              &lt;directory&gt;./tests&lt;/directory&gt;
          &lt;/testsuite&gt;
  &lt;/testsuites&gt;
  &lt;/phpunit&gt;
  </code></pre>
  
  <p>As <a href="http://en.wikipedia.org/wiki/Don%27t_repeat_yourself" rel="nofollow">DRY</a> says, I don't want to simply copy &amp; paste content of <strong>phpunit.xml</strong> to my <strong>build.xml</strong> to run phpunit with the same configuration.</p>
  
  <p>My target in <strong>build.xml</strong> for Phing looks like this:</p>
  
  <pre><code>&lt;target name="unit-test"&gt;
      &lt;phpunit printsummary="true" /&gt;
  &lt;/target&gt;
  </code></pre>
  
  <p>Even that phpunit should automatically find phpunit.xml (when I launch it manually as like entering "phpunit" to my terminal and push enter, it works) and use it, in case of phing, the output looks like this:</p>
  
  <pre><code>[phpunit] Total tests run: 0, Failures: 0, Errors: 0, Incomplete: 0, Skipped: 0, Time elapsed: 0.00122 s
  </code></pre>
  
  <p>So is there any way, how to reach described behaviour?</p>