I've this simple question:
With the command
phpunit -c|--configuration <file>
It is possible specify a file which contains several phpunit configuration such as (but not limited to):
<testsuites>
<testsuite name="unit">
<directory>path/to/directory/one</directory>
<directory>path/to/directory/two</directory>
</testsuite>
</testsuites>
which will result in a list of tests to be executed.
While I'm not fully aware of phpunit internal implementation I'd like to retrieve in some way this 'list'.
To answer my own question:
If you look at the internal structure of PhpUnit the parser component is strongly coupled with the runner component invoked by the command.
This situation makes practically impossible to reuse the xml parser forcing you to either copy paste chunks of code or reimplement the parsing logic.
Long story short PhpUnit xml parsing logic is not reusable.