If it is not part of the java servlet and thus not part of the war file you
should devide php code from java code.
For example you have the following scenario:

web browser connects to web server (apache) and php files.
php file connects to tomcat/java servlet via SoapClient

In this scenario you might have two artifacts:
1) The php artifact building your frontend webpage
2) The java servlet to be deployed in tomcat (or any other servlet
container)

The php artifact might be built as zip/phar and be deployed into your
apache web root.
The java artifact will be built as war.


As the java servlet is your backend in this scenario the php project might
need a dependency to the java servlet during runtime. To perform tests
including the java servlet backend you need to tell the test cases to start
a java servlet container and run your java artifact within it.

Reply via email to