About this task
You can check that your PHP scripts work correctly by creating
an instance of your user-defined pattern. When you test your user-defined
pattern, a new workspace is opened in which to create the instance
of your pattern. If you want to change your PHP code and retest it,
you are not required to open a new workspace after each change. If
you make any other changes to the pattern authoring project, you must
rebuild the pattern plug-ins and launch a new workspace.
What to do next
You can either change your PHP code and
retest it or you can package and distribute your user-defined pattern:
- To change and retest your PHP code, repeat the following steps
until all your changes are complete. You can keep the test workspace
open and continue to change your code and generate pattern instances
without closing and relaunching the test workspace after each change:
- Edit the PHP code file in your main workspace and save the file.
- In the test workspace, generate a new instance of your user-defined
pattern and check the results.
- To package and distribute your user-defined pattern, see Packaging and distributing pattern plug-ins.