How to integrate phpRack and Phing?
Phing 2.4.1+ is required (see Phing ticket #443).
Inside your build.xml script you should define the following target (if PHP is installed as module in apache):
<target name="phpRack" description="Validate all integration tests"> <http-request url="http://example.com/phprack.php?suite" authUser="john" authPassword="jf7mF4" responseRegex="/PHPRACK SUITE: OK/" verbose="true" observerEvents="connect, receivedBody, disconnect" /> </target>
Alternative scenario (if PHP is installed as CLI standalone application):
<target name="phpRack" description="Validate all integration tests"> <http-request url="http://example.com/phprack.php?suite&login=john&password=jf7mF4" responseRegex="/PHPRACK SUITE: OK/" verbose="true" observerEvents="connect, receivedBody, disconnect" /> </target>
That's it.
