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.
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다