Configure a phpunit.xml file in Eclipse PDT on Windows

In Eclipse PDT, select Run > External Tools > External Tools Configurations…

Click on the New launch configuration icon.

Give it a name. “PHPUnitConfig” for example.

Below is a screenshot of sample settings. Modify according to your evironment.

Configure a phpunit.xml file in Eclipse PDT

On the Main tab, under Location set the path to your php.exe file.

Set Working Directory to: ${workspace_loc}

Set Arguments to: C:\wamp\bin\php\php5.3.0\phpunit --configuration ${workspace_loc}\${resource_path}

Make sure to set the path to the installation location of phpunit.

Select your phpunit.xml file in the PHP Explorer panel and from the main menu, select Run > External Tools > PHPUnitConfig.

Leave a Reply

You must be logged in to post a comment.