title: Phpunit and Jenkins
body: <p>I have a PHP project written in PHPUnit using Selenium.</p>
  
  <p>The project is structured as below:
  PHPProjectName</p>
  
  <ul>
  <li>Source Files
  <ul>
  <li>(doesn't contain anything)</li>
  </ul></li>
  <li>Selenium Test Files
  <ul>
  <li>contains all my selenium test php files - extending the class PHPUnit_Extensions_SeleniumTestCase</li>
  </ul></li>
  <li>Include Path
  <ul>
  <li>c:\program files\PHP</li>
  <li>c:\program files\PHP\PEAR\PHPUnit</li>
  </ul></li>
  </ul>
  
  <p>I then run start the Selenium server manually by running java -jar selenium-server-standalone-2.24.1.jar</p>
  
  <p>The php script to execute all my selenium test php files works fine. </p>
  
  <p>But now I want to use Jenkins as a test management tool to build and execute my PHPunit tests in this folder. I guess the steps are:</p>
  
  <ul>
  <li>Install Jenkins</li>
  <li>Write a build script for the PHPunit tests</li>
  <li>Execute the build script through Jenkins</li>
  </ul>
  
  <p>Are the steps correct? Has anyone done or know how to set this up?</p>
  
  <p>Thanks very much,</p>