如何仅在phpunit中为特定测试套件编写CodeCoverageIgnore

I have defined two test-suites in phpunit.xml file, one for Unit Tests and other for Functional Test. For some functions which can't be unit tested, I am using @codeCoverageIgnore in my source code. But I do not want this code to be ignored when running Functional Tests.

Is it possible to add test-suite name to codeCoverageIgnore so that my code is ignored for unit tests and not for functional tests.

No, that is not possible. If you think it should be possible then please open a ticket.